python-markupsafe 0.15-1 (armhf binary) in ubuntu precise
MarkupSafe implements a unicode subclass that supports HTML strings:
.
>>> from markupsafe import Markup, escape
>>> escape(
Markup(
>>> tmpl = Markup(
>>> tmpl % "Peter > Lustig"
Markup(
.
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:
.
>>> from markupsafe import soft_unicode
>>> soft_unicode(42)
u'42'
>>> soft_unicode(
Markup(u'foo')
Details
- Package version:
- 0.15-1
- Status:
- Published
- Component:
- main
- Priority:
- Optional
Downloadable files
armhf build of markupsafe 0.15-1 in ubuntu precise RELEASE produced
these files:
- python-markupsafe_0.15-1_armhf.deb (12.8 KiB)
Package relationships
- Provides:
- python2.7-markupsafe