tags:

views:

78

answers:

1
from django.utils.safestring import *

print SafeString('\u3042')
print '\u3042'

\u3042
\u3042

who can give me a better example.

thanks

+1  A: 

An instance of django.utils.safestring.SafeString is a string which has already been vetted or escaped, so it contains no characters that could give HTML a parsing problem ('<', '>', '&'). See the docs.

Alex Martelli