[MKDoc-modules] [BUG] MKDoc::XML::Stripper not closing p elements
Jean-Michel Hiver
jhiver at mkdoc.com
Wed Sep 17 16:36:16 BST 2003
> ---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!
Ooops! Stupid regular expression typo. Fixed for 0.3.
--
Building a better web - http://www.mkdoc.com/
---------------------------------------------
Jean-Michel Hiver
jhiver at mkdoc.com - +44 (0)114 255 8097
Homepage: http://www.webmatrix.net/
More information about the MKDoc-modules
mailing list