diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index e03a775d60..a1e74b0810 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -764,6 +764,17 @@ appropriate entities. Can be called multiple times on a single string. + String marked safe will become unsafe again if modified. For example:: + + >>> mystr = 'Hello World ' + >>> mystr = mark_safe(mystr) + >>> type(mystr) + + + >>> mystr = mystr.strip() # removing whitespace + >>> type(mystr) + + .. function:: mark_for_escaping(s) Explicitly mark a string as requiring HTML escaping upon output. Has no