AnyEvent::XMPP::Ext::HTML - XEP-0071: XHTML-IM (Version 1.5) for AnyEvent::XMPP
version 0.02
my $c = AnyEvent::XMPP::Connection->new(...); $c->add_extension(my $disco = AnyEvent::XMPP::Ext::Disco->new); $c->add_extension(AnyEvent::XMPP::Ext::HTML->new(disco => $disco)); $c->send_message( body => "This is plain text; same as usual.", html => "This is <em>XHTML</em>!", );
An implementation of XEP-0071: XHTML-IM for HTML-formatted messages.
Creates a new extension handle. It takes an optional disco argument which is a AnyEvent::XMPP::Ext::Disco object for which this extension will be enabled.
disco
Initialize the extension. This does not need to be called externally.
HTML messages are not validated nor escaped, so it is your responsibility to use valid XHTML-IM tags and to close them properly.
Charles McGarvey <ccm@cpan.org>
This software is copyright (c) 2013 by Charles McGarvey.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install AnyEvent::XMPP::Ext::HTML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::XMPP::Ext::HTML
CPAN shell
perl -MCPAN -e shell install AnyEvent::XMPP::Ext::HTML
For more information on module installation, please visit the detailed CPAN module installation guide.