I had a look at string escape into XML and found it very useful.
I would like to do a similar thing: Escape a string to be used in an XML-Attribute.
The string m
if it can be of any help, in several language, one uses createCDATASection to avoid all XML special characters.
It adds something like this :
]]>