* Webley Silvernail wrote:
>I have some XHTML in utf-8 that includes the named character reference   
>for non-breaking spaces.

(That is a numeric, not a named, character reference.)

>The output is replacing the   with a non-printable character that is 
>rendered in various agents as boxes or question marks enclosed in diamonds.

(That like means you've not specified the character encoding properly.)

>I've tried adding an explicit decode/encode step and using HTML::Entities, but 
>I've had no luck.  Basically, I just want TreeBuilder to ignore the   
>references and pass them through. 

I believe you are looking for the $element->as_HTML($entities) parameter
(see `perldoc HTML::Element` for details; set the parameter to a value
that includes all the characters you want to be escaped in the output).
-- 
Björn Höhrmann · mailto:bjo...@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Reply via email to