Skip to content

Commit

Permalink
clarify escape() description: key point is literal rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
xflr6 committed Sep 18, 2019
1 parent 350e6b7 commit 95c7fa4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,9 @@ instead (same solution as proposed for the stdlib :mod:`re` module):
.. image:: _static/escapes.svg
:align: center

To disable any special character meaning in a string (e.g. from an untrusted
source), use the :func:`.escape` function (cf. the :func:`re.escape` function):
To disable any special character meaning in a string (e.g. from user input to
be rendered literally), use the :func:`.escape` function (cf. the
:func:`re.escape` function):

.. code:: python
Expand Down

0 comments on commit 95c7fa4

Please sign in to comment.