From b0a6cc7f5738d6b959faf10354b772338f611fd9 Mon Sep 17 00:00:00 2001 From: Akash Kumar Sen Date: Wed, 31 May 2023 13:02:45 +0530 Subject: [PATCH] Fixed #34600 -- Removed references to bleach in docs. --- 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 9a9778f0ca..9c7a8b63bb 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -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 diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 792e7db920..f666fdc05f 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -698,8 +698,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()