summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkash Kumar Sen <Akash-Kumar-Sen@users.noreply.github.com>2023-05-31 13:02:45 +0530
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-05-31 10:23:37 +0100
commitdca5f5d58af8b8d82c96bdf3d28be74886bb955f (patch)
tree0266c5fc5432c95201cc95424dead5a4a45a1b21
parent25bd9faf327c7c0a45b9ca6e0ea678d898af8838 (diff)
[4.2.x] Fixed #34600 -- Removed references to bleach in docs.
Backport of b0a6cc7f5738d6b959faf10354b772338f611fd9 from main
-rw-r--r--docs/ref/templates/builtins.txt5
-rw-r--r--docs/ref/utils.txt4
2 files changed, 3 insertions, 6 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 2677e35815..bee78073a2 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -2482,10 +2482,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
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index 644532f621..22d52acbfe 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -707,8 +707,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()