Fixed #34600 -- Removed references to bleach in docs.

This commit is contained in:
Akash Kumar Sen 2023-05-31 13:02:45 +05:30 committed by Mariusz Felisiak
parent d3d173425f
commit b0a6cc7f57
2 changed files with 3 additions and 6 deletions

View File

@ -2507,10 +2507,7 @@ output will be ``"Joel is a slug"``.
Note that ``striptags`` doesn't give any guarantee about its output being
HTML safe, particularly with non valid HTML input. So **NEVER** apply the
``safe`` filter to a ``striptags`` output. If you are looking for something
more robust, you can use the ``bleach`` Python library, notably its
`clean`_ method.
.. _clean: https://bleach.readthedocs.io/en/latest/clean.html
more robust, consider using a third-party HTML sanitizing tool.
.. templatefilter:: time

View File

@ -698,8 +698,8 @@ escaping HTML.
If ``value`` is ``"<b>Joel</b> <button>is</button> a <span>slug</span>"``
the return value will be ``"Joel is a slug"``.
If you are looking for a more robust solution, take a look at the
:pypi:`bleach` Python package.
If you are looking for a more robust solution, consider using a third-party
HTML sanitizing tool.
.. function:: html_safe()