mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Patch #613256: Add nescape method to xml.sax.saxutils.
This commit is contained in:
parent
edb6bff67f
commit
74b51ac1e5
6 changed files with 58 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue