No such thing as a small change | |
PerlMonks |
Re: LibXML doesn't encode single or double quotesby grantm (Parson) |
on Nov 28, 2011 at 21:53 UTC ( [id://940479]=note: print w/replies, xml ) | Need Help?? |
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.:
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.
In Section
Seekers of Perl Wisdom
|
|