python-markupsafe binary package in Ubuntu Precise amd64
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')
Publishing history
Date | Status | Target | Component | Section | Priority | Phased updates | Version | ||
---|---|---|---|---|---|---|---|---|---|
2011-10-17 13:04:44 UTC | Published | Ubuntu Precise amd64 | release | main | python | Optional | 0.15-1 | ||
|
|||||||||
2011-10-17 13:11:41 UTC | Superseded | Ubuntu Precise amd64 | release | main | python | Optional | 0.12-2build1 | ||
|