[Israel.pm] escaping the values of XML attributes
Offer Kaye
offer.kaye at gmail.com
Wed Sep 22 12:14:17 PDT 2004
On Wed, 22 Sep 2004 19:17:52 +0200 (IST), Shlomo Yona wrote:
> Hello,
>
> When generating XML documents I face the problem of
> selecting the apropriate set of quotes to use on attribute
> values.
>
In the $string, substitute all double quotes to the corresponding
entity (""e;" or """ , whichever representation works), then
simply use " as the quote character, and leave any ' chars alone.
Regards,
--
Offer Kaye
More information about the Perl
mailing list