[Petal] [REQ] Escape HTML entities

Jean-Michel Hiver jhiver at mkdoc.com
Wed Oct 8 12:05:24 BST 2003


OK more on this...

I have upgraded my XML::Parser, added the extra suggested line in
Petal::Canonicalizer::XML, and changed the following file in the test
suite:

  [jhiver at frogette Petal-1.06]$ more t/data/entities.xml 
  <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  <html>
    <body>&lt; &copy;</body>
  </html>

Now, running perl t/017_Entities.t I get:

  <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  <html>
    <body>&lt; </body>
  </html>

As you can see the copyright symbol gets stripped... Which means it
still doesn't work on my machine. I also tried &eacute; to no effect.

Any ideas?
-- 
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 Petal mailing list