HTML::Encode



examples/html-parser/html_encode.pl
use strict;
use warnings;

use HTML::Entities qw(decode_entities encode_entities);


print decode_entities("xéx"), "\n";
print decode_entities("xåx"), "\n";
print encode_entities(decode_entities("xåx")), "\n";


print encode_entities('This expression $x < 3'), "\n";