[XML-SIG] Silly question

Lars Marius Garshol larsga@garshol.priv.no
06 Mar 2000 08:35:41 +0100

* brk@jenkon.com
| I know I must have just overlooked it somewhere, but does anyone
| know of a function that will take plain text and make it safe for
| XML? That is, given a string like 'This is an <example> of unusable
| text", convert it to 'This is an &lt;example&gt; of unusable text'?

The function escape in xml.utils will do this for you. Look at the
doco string for documentation.

--Lars M.