|Description:||XML/HTML/XHTML Markup safe string (0.15-1)|
Implements a unicode subclass that supports HTML strings. If you want to make an object unicode that is not yet unicode but don't want to lose the taint information, you can use the soft_unicode function. Objects can customize their HTML markup equivalent by overriding the __html__ function. Since MarkupSafe 0.10 there is now also a separate escape function called escape_silent that returns an empty string for None for consistency with other systems that return empty strings for None when escaping (for instance Pylons' webhelpers). If you also want to use this for the escape method of the Markup object, you can create your own subclass.
|Maintainer:||Kurt Schwehr <goatbarATusersDOTsourceforgeDOTnet>|
CVS log, Last Changed: Sat, 23 Nov 2013 20:52:43 (UTC)
(*) = Unsupported distribution.