use HTML::String::Value;
use Exporter 'import';
+our $VERSION = '1.000002'; # 1.0.2
+
+$VERSION = eval $VERSION;
+
our @EXPORT = qw(html);
sub html {
my $html = html('<h1>').$not_html.html('</h1>');
- print html($html); # <h1>Hello, Bob " Jake</h1>
+ print html($html); # <h1>Hello, Bob & Jake</h1>
or, alternatively,
"<h1>${not_html}</h1>";
}
- print html($html); # <h1>Hello, Bob " Jake</h1>
+ print html($html); # <h1>Hello, Bob & Jake</h1>
(but see the L<HTML::String::Overload> documentation for details and caveats).
For integration with L<Template Toolkit|Template>, see L<HTML::String::TT>.
+=head1 CHARACTERS THAT WILL BE ESCAPED
+
+HTML::String concerns itself with characters that have special meaning in
+HTML. Those which begin and end tags (< and >), those which begin an entity
+(&) and those which delimit attribute values (" and '). It outputs them
+in a fashion compatible with HTML 4 and newer and all versions of XHTML
+(assuming support for named entities in the parser). There are no known
+incompatibilities with browsers.
+
+HTML::String does not concern itself with other characters, it is assumed
+that HTML documents will be marked with a suitable character encoding via
+a Content-Type HTTP header and/or a meta element.
+
=head1 EXPORTS
=head2 html
=head1 CONTRIBUTORS
-None yet - maybe this software is perfect! (ahahahahahahahahaha)
+dorward - David Dorward (cpan:DORWARD) <david@dorward.me.uk>
+rafl - Florian Ragwitz (cpan:FLORA) <rafl@debian.org>
=head1 COPYRIGHT