tornado.escape
xhtml_escape
xhtml_unescape
url_escape
url_unescape
json_encode
json_decode
These functions are used extensively within Tornado itself, but should not be directly needed by most applications. Note that much of the complexity of these functions comes from the fact that Tornado supports both Python 2 and Python 3.
utf8
to_unicode
native_str
Converts a byte or unicode string into type str. Equivalent to utf8 on Python 2 and to_unicode on Python 3.
to_basestring
recursive_unicode
linkify
squeeze