Patch #613256: Add nescape method to xml.sax.saxutils.

This commit is contained in:
Martin v. Löwis 2002-10-26 14:50:45 +00:00
parent edb6bff67f
commit 74b51ac1e5
6 changed files with 58 additions and 8 deletions

View file

@ -22,6 +22,17 @@ either in direct use, or as base classes.
strings; each key will be replaced with its corresponding value.
\end{funcdesc}
\begin{funcdesc}{unescape}{data\optional{, entities}}
Unescape \character{\&}, \character{\<}, and \character{\>}
in a string of data.
You can unescape other strings of data by passing a dictionary as the
optional \var{entities} parameter. The keys and values must all be
strings; each key will be replaced with its corresponding value.
\versionadded{2.3}
\end{funcdesc}
\begin{funcdesc}{quoteattr}{data\optional{, entities}}
Similar to \function{escape()}, but also prepares \var{data} to be
used as an attribute value. The return value is a quoted version of