[Israel.pm] escaping the values of XML attributes

Uri Bruck bruck at actcom.net.il
Wed Sep 22 13:29:30 PDT 2004


Shlomo Yona wrote:
> On Wed, 22 Sep 2004, Offer Kaye wrote:
> 
>> In the $string, substitute all double quotes to the corresponding
>> entity ("&quote;" or """ , whichever representation works), then
>> simply use " as the quote character, and leave any ' chars alone.
> 
> 
> This is a practical idea.
> Now, what to do with other illegal character such as
>     <
>     >
>     &
> and so on?
> 
> There should be some standard escaping procedure (for
> writing and then an unescaping procedure for reading...)

HTML::Entities

> 
> 
> 


-- 
Thanks,
Uri
http://translation.israel.net



More information about the Perl mailing list