[Petal] [REQ] Escape HTML entities
Chris Croome
chris at webarchitects.co.uk
Tue Aug 19 00:31:13 BST 2003
Hi
On Mon 18-Aug-2003 at 03:42:20PM +0100, Jean-Michel Hiver wrote:
>
> Mhhh... that's a known bug, it's documented at the end of the Petal POD:
>
> -------------------------------- %< ---------------------------------
>
> KNOWN BUGS
> The XML::Parser wrapper only cannot expand entities
> "<", ">", "&" and """. Besides, I can't get
> it to NOT expand entities in 'Stream' mode.
>
> HTML::TreeBuilder expands all entities,
> hence s are lost / converted to whitespaces.
>
> XML::Parser is deprecated and should be replaced by SAX
> handlers at some point.
>
> -------------------------------- >% ---------------------------------
>
> So if you find a way to do any of these things it would make everybody's
> life much better.
>
> Any ideas?
I guess you know about this module:
HTML::Entities
http://search.cpan.org/author/GAAS/HTML-Parser-3.30/lib/HTML/Entities.pm
I don't know if it supports XHTML or if would be of any use for
this?
Chris
--
Chris Croome <chris at webarchitects.co.uk>
web design http://www.webarchitects.co.uk/
web content management http://mkdoc.com/
More information about the Petal
mailing list