[Israel.pm] escaping the values of XML attributes

Shlomo Yona shlomo at cs.haifa.ac.il
Wed Sep 22 12:50:23 PDT 2004

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...)

Shlomo Yona
shlomo at cs.haifa.ac.il

More information about the Perl mailing list