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

Backport of 4832c004e8 from master
This commit is contained in:
Luke Plant 2015-01-15 08:24:54 +00:00
parent 1d5dfd01ec
commit 57671dd0b9
1 changed files with 3 additions and 0 deletions

View File

@ -762,6 +762,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> '