mirror of https://github.com/django/django.git
[1.5.x] Fixed #20146 -- Updated removed_tags example
Backport of e5d252f5b9
from master.
This commit is contained in:
parent
1cf4968cc5
commit
56d4356d8c
|
@ -570,11 +570,11 @@ escaping HTML.
|
||||||
|
|
||||||
.. function:: remove_tags(value, tags)
|
.. function:: remove_tags(value, tags)
|
||||||
|
|
||||||
Removes a list of [X]HTML tag names from the output.
|
Removes a space-separated list of [X]HTML tag names from the output.
|
||||||
|
|
||||||
For example::
|
For example::
|
||||||
|
|
||||||
remove_tags(value, ["b", "span"])
|
remove_tags(value, "b span")
|
||||||
|
|
||||||
If ``value`` is ``"<b>Joel</b> <button>is</button> a <span>slug</span>"`` the
|
If ``value`` is ``"<b>Joel</b> <button>is</button> a <span>slug</span>"`` the
|
||||||
return value will be ``"Joel <button>is</button> a slug"``.
|
return value will be ``"Joel <button>is</button> a slug"``.
|
||||||
|
|
Loading…
Reference in New Issue