Skip to content

Commit

Permalink
pythongh-71616: Add note to warn against general translation of saxut…
Browse files Browse the repository at this point in the history
…ils.escape() (python#93450)

* Add note to warn against general translation of saxutils.escape()

* Use more direct wording
  • Loading branch information
slateny authored Oct 11, 2022
1 parent e0ae9dd commit f0a6800
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doc/library/xml.sax.utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ or as base classes.
replaced with its corresponding value. The characters ``'&'``, ``'<'`` and
``'>'`` are always escaped, even if *entities* is provided.

.. note::

This function should only be used to escape characters that
can't be used directly in XML. Do not use this function as a general
string translation function.

.. function:: unescape(data, entities={})

Expand Down

0 comments on commit f0a6800

Please sign in to comment.