python3-markupsafe 0.12-2build1 (i386 binary) in ubuntu oneiric
MarkupSafe implements a unicode subclass that supports HTML strings:
.
>>> from markupsafe import Markup, escape
>>> escape(
Markup(
>>> tmpl = Markup(
>>> tmpl % "Peter > Lustig"
Markup('<em>Peter > Lustig</em>')
.
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)
'42'
>>> soft_unicode(
Markup('foo')
Details
- Package version:
- 0.12-2build1
- Status:
- Obsolete
- Component:
- main
- Priority:
- Optional
Downloadable files
i386 build of markupsafe 0.12-2build1 in ubuntu oneiric RELEASE produced
these files:
- python3-markupsafe_0.12-2build1_i386.deb (12.9 KiB)
Package relationships
- Depends on: