Roman schrieb:
> Is there a package that converts a string that contains special
> characters in xml to to literal value.  For instance, converts string
> http://myhome/&param to http://myhome/&param.

import xml.sax.saxutils

print xml.sax.saxutils.escape("I'm a happy & friendly guy, and 1 < 3 - 
never forget that!")

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to