mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #24046 -- Deprecated the "escape" half of utils.safestring.
This commit is contained in:
parent
c3e1086949
commit
2f0e0eee45
13 changed files with 87 additions and 20 deletions
|
@ -1578,6 +1578,12 @@ For example, you can apply ``escape`` to fields when :ttag:`autoescape` is off::
|
|||
{{ title|escape }}
|
||||
{% endautoescape %}
|
||||
|
||||
.. deprecated:: 1.10
|
||||
|
||||
The "lazy" behavior of the ``escape`` filter is deprecated. It will change
|
||||
to immediately apply :func:`~django.utils.html.conditional_escape` in
|
||||
Django 2.0.
|
||||
|
||||
.. templatefilter:: escapejs
|
||||
|
||||
``escapejs``
|
||||
|
|
|
@ -839,6 +839,8 @@ appropriate entities.
|
|||
|
||||
.. function:: mark_for_escaping(s)
|
||||
|
||||
.. deprecated:: 1.10
|
||||
|
||||
Explicitly mark a string as requiring HTML escaping upon output. Has no
|
||||
effect on ``SafeData`` subclasses.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue