فهرست منبع

Fixed #34600 -- Removed references to bleach in docs.

Akash Kumar Sen 1 سال پیش
والد
کامیت
b0a6cc7f57
2فایلهای تغییر یافته به همراه3 افزوده شده و 6 حذف شده
  1. 1 4
      docs/ref/templates/builtins.txt
  2. 2 2
      docs/ref/utils.txt

+ 1 - 4
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
 

+ 2 - 2
docs/ref/utils.txt

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