From 77d25dbd0f20d6a907c805ffae8aaadd87edbacf Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 5 Feb 2019 09:38:29 -0500 Subject: Refs #27753 -- Favored SafeString over SafeText. --- docs/howto/custom-template-tags.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/howto') diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index aa61b912b4..f39dc586d3 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -200,12 +200,12 @@ passed around inside the template code: to be interpreted as-is on the client side. Internally, these strings are of type - :class:`~django.utils.safestring.SafeText`. You can test for them + :class:`~django.utils.safestring.SafeString`. You can test for them using code like:: - from django.utils.safestring import SafeText + from django.utils.safestring import SafeString - if isinstance(value, SafeText): + if isinstance(value, SafeString): # Do something with the "safe" string. ... -- cgit v1.3