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()