浏览代码

Fixed utils.html.escape()'s docs with regards to string coercion.

As of 301de774c21d055e9e5a7073e5bffdb52bc71079.
Claude Paroz 6 年之前
父节点
当前提交
1ed8527e3d
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      docs/ref/utils.txt

+ 1 - 2
docs/ref/utils.txt

@@ -589,8 +589,7 @@ escaping HTML.
 .. function:: escape(text)
 .. function:: escape(text)
 
 
     Returns the given text with ampersands, quotes and angle brackets encoded
     Returns the given text with ampersands, quotes and angle brackets encoded
-    for use in HTML. The input is first passed through
-    :func:`~django.utils.encoding.force_text` and the output has
+    for use in HTML. The input is first coerced to a string and the output has
     :func:`~django.utils.safestring.mark_safe` applied.
     :func:`~django.utils.safestring.mark_safe` applied.
 
 
 .. function:: conditional_escape(text)
 .. function:: conditional_escape(text)