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
provides the 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, zope.i18n.Message ,
zope.i18n.MessageID , or an instance of IStructuredString . |