![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Classes | |
class | EscapeData |
class | EscapeString |
class | EscapeUnicode |
class | SafeData |
class | SafeString |
class | SafeUnicode |
Functions | |
def | mark_safe |
def | mark_for_escaping |
Functions for working with "safe strings": strings that can be displayed safely without further escaping in HTML. Marking something as a "safe string" means that the producer of the string has already turned characters that should not be interpreted by the HTML engine (e.g. '<') into the appropriate entities.
def google.appengine._internal.django.utils.safestring.mark_for_escaping | ( | s | ) |
Explicitly mark a string as requiring HTML escaping upon output. Has no effect on SafeData subclasses. Can be called multiple times on a single string (the resulting escaping is only applied once).
def google.appengine._internal.django.utils.safestring.mark_safe | ( | s | ) |
Explicitly mark a string as safe for (HTML) output purposes. The returned object can be used everywhere a string or unicode object is appropriate. Can be called multiple times on a single string.