[MKDoc-modules] [BUG] MKDoc::XML::Stripper not closing p elements

Paul Arzul patricka at mkdoc.com
Tue Sep 16 16:43:54 BST 2003


from the documentation:

---8<---
use MKDoc::XML::Stripper;

my $stripper = new MKDoc::XML::Stripper;
$stripper->allow (qw /p class id/);

my $ugly = '<p class="para" style="color:red">Hello, <strong>World</strong>!</p>';
my $neat = $stripper->process_data ($ugly);
print $neat;
 
Should print:
 
<p class="para">Hello, World!</p>
--->8---

but it doesn't. it prints:

<p class="para">Hello, World!
                             ^^^^

- p



More information about the MKDoc-modules mailing list