Kaydet (Commit) 1ed8527e authored tarafından Claude Paroz's avatar Claude Paroz Kaydeden (comit) Tim Graham

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

As of 301de774.
üst a73cf811
...@@ -589,8 +589,7 @@ escaping HTML. ...@@ -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 for use in HTML. The input is first coerced to a string and the output has
:func:`~django.utils.encoding.force_text` 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment