mirror of https://github.com/django/django.git
Direct readers to format_html() in mark_safe() docs.
This commit is contained in:
parent
67bcae1e58
commit
4832c004e8
|
@ -831,6 +831,9 @@ appropriate entities.
|
||||||
|
|
||||||
Can be called multiple times on a single string.
|
Can be called multiple times on a single string.
|
||||||
|
|
||||||
|
For building up fragments of HTML, you should normally be using
|
||||||
|
:func:`django.utils.html.format_html` instead.
|
||||||
|
|
||||||
String marked safe will become unsafe again if modified. For example::
|
String marked safe will become unsafe again if modified. For example::
|
||||||
|
|
||||||
>>> mystr = '<b>Hello World</b> '
|
>>> mystr = '<b>Hello World</b> '
|
||||||
|
|
Loading…
Reference in New Issue