Part of lp.services.webapp
|Function||html_escape||Performs translation and sanitizes any HTML present in the message.|
|Function||html_unescape||Reverses the transformation performed by html_escape.|
|Function||translate_if_i18n||Translate an internationalized object, returning the result.|
DO NOT USE THIS DIRECTLY UNLESS YOU ARE SURE YOU NEED TO.
There is rarely a good reason to use this directly instead of going via structured().
A plain string message will be sanitized ("&", "<" and ">" are
converted to HTML-safe sequences). Passing a message that
IStructuredString interface will return a unicode
string that has been properly escaped. Passing an instance of a
Zope internationalized message will cause the message to be
translated, then santizied.
|Parameters||message||This may be a string, |
DO NOT USE THIS EXCEPT IN LEGACY CODE.
Converts the 5 entities references produced by html_escape into their original form. There is almost no reason to ever do this.