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

As of 301de774c2.
This commit is contained in:
Claude Paroz 2018-07-18 20:15:42 +02:00 committed by Tim Graham
parent a73cf8110e
commit 1ed8527e3d
1 changed files with 1 additions and 2 deletions

View File

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