[Israel.pm] escaping the values of XML attributes

semuel semuel at semuel.co.il
Wed Sep 22 13:36:42 PDT 2004

Hello There.

DBI's function 'quote' guerentis to quote every unsusal charecter from your
I just don't know if there is an un-quote function.
Chack it out.


-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On Behalf
Of Shlomo Yona
Sent: Wednesday, September 22, 2004 9:50 PM
To: Offer Kaye; Perl in Israel
Subject: Re: [Israel.pm] escaping the values of XML attributes

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
Perl mailing list
Perl at perl.org.il

More information about the Perl mailing list