mirror of https://github.com/django/django.git
Fixed #34600 -- Removed references to bleach in docs.
This commit is contained in:
parent
d3d173425f
commit
b0a6cc7f57
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue