1
0
mirror of https://github.com/django/django.git synced 2025-04-22 00:04:43 +00:00

[1.6.x] Direct readers to format_html() in mark_safe() docs.

Backport of 4832c004e88a68b98b976b4f68a1c9fdb4ea3530 from master
This commit is contained in:
Luke Plant 2015-01-15 08:24:54 +00:00
parent 79df62f4d2
commit b9101fa7a2

View File

@ -804,6 +804,9 @@ appropriate entities.
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::
>>> mystr = '<b>Hello World</b> '