in reply to LibXML doesn't encode single or double quotes
Why do you think single and double quotes need to be escaped?
It is necessary to escape a quote character when it is included in an attribute value delimited by the same type of quote. e.g.:
<person name="Michael "Mickey" Mouse"></person>
XML::LibXML will escape the quotes in this case.
But apart from that case, it's perfectly safe to use unescaped quotes in the text body of XML/HTML elements.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: LibXML doesn't encode single or double quotes
by randonpurcell (Initiate) on Nov 28, 2011 at 22:00 UTC | |
by grantm (Parson) on Nov 28, 2011 at 22:11 UTC | |
by randonpurcell (Initiate) on Nov 28, 2011 at 22:19 UTC | |
by ikegami (Patriarch) on Nov 29, 2011 at 03:59 UTC |
In Section
Seekers of Perl Wisdom