From dca5f5d58af8b8d82c96bdf3d28be74886bb955f Mon Sep 17 00:00:00 2001 From: Akash Kumar Sen Date: Wed, 31 May 2023 13:02:45 +0530 Subject: [PATCH] [4.2.x] Fixed #34600 -- Removed references to bleach in docs. Backport of b0a6cc7f5738d6b959faf10354b772338f611fd9 from main --- docs/ref/templates/builtins.txt | 5 +---- docs/ref/utils.txt | 4 ++-- 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 ``"Joel a slug"`` 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()