Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.08 KB

escape.rst

File metadata and controls

39 lines (28 loc) · 1.08 KB

tornado.escape --- Escaping and string manipulation

tornado.escape

Escaping functions

xhtml_escape

xhtml_unescape

url_escape

url_unescape

json_encode

json_decode

Byte/unicode conversions

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

Miscellaneous functions

linkify

squeeze