Skip to content

Commit

Permalink
[1.7.x] Direct readers to format_html() in mark_safe() docs.
Browse files Browse the repository at this point in the history
Backport of 4832c00 from master
  • Loading branch information
spookylukey committed Jan 15, 2015
1 parent 478546f commit 327703c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/ref/utils.txt
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,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> '
Expand Down

0 comments on commit 327703c

Please sign in to comment.