Subject: | > HTML metacharacters in text are not preserved |
We use HTML metacharacters in our text content. The < (<) metacharacter is preserved, but the > (>) metacharacter is not.
You can reproduce this with the following short perl script:
====
#!/usr/bin/perl
use strict;
use warnings;
use XML::Twig;
my $t=XML::Twig->new();
$t->parse('<pre><hello></pre>');
$t->print(pretty_print => 'indented');
====
The output is:
<pre><hello></pre>
^ not escaped