فهرست منبع

Direct readers to format_html() in mark_safe() docs.

Luke Plant 10 سال پیش
والد
کامیت
4832c004e8
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      docs/ref/utils.txt

+ 3 - 0
docs/ref/utils.txt

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