Home | Trees | Indices | Help |
|
---|
|
object --+ | EmailFilter
Rename unwanted elements from html emails
Most html emails contains elements that have to be renamed to something safer before they can be inlined into the Posterity message view.
This filter currently rename html, head and body elements to div.
>>> from genshi.input import HTML >>> stream = HTML('<html><head/><body>foo</body></html>') >>> stream = stream | EmailFilter() >>> stream.render() '<div><div/><div>foo</div></div>'
Instance Methods | |||
|
|||
Inherited from |
Properties | |
Inherited from |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Oct 1 20:58:01 2007 | http://epydoc.sourceforge.net |