diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2015-01-15 08:24:54 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2015-01-15 08:29:00 +0000 |
| commit | 327703c0672b705f264d2611aacbe2ce9795749b (patch) | |
| tree | 2daf7ba3414b75ea02127bdb7df7c1a1711e5511 /docs/ref | |
| parent | 478546fcef38d95866a92bc44d10e15b26c7254c (diff) | |
[1.7.x] Direct readers to format_html() in mark_safe() docs.
Backport of 4832c004e88a68b98b976b4f68a1c9fdb4ea3530 from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/utils.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 1ecb8eed6b..036e5aa639 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -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> ' |
