Don't use "web:TextToHTML" for XML escaping... use "web:TextToXML" instead. TextToHTM...