mirror of https://github.com/django/django.git
[2.1.x] Fixed utils.html.escape()'s docs with regards to string coercion.
As of301de774c2
. Backport of1ed8527e3d
from master
This commit is contained in:
parent
16fdcf67c8
commit
e9950ed897
|
@ -589,8 +589,7 @@ escaping HTML.
|
|||
.. function:: escape(text)
|
||||
|
||||
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.
|
||||
|
||||
.. function:: conditional_escape(text)
|
||||
|
|
Loading…
Reference in New Issue