Package itools :: Package html

Package html

Classes
  HTMLFile
HTML files are a lot like XHTML, only the parsing and the output is different, so we inherit from XHTMLFile instead of TextFile, even if the mime type is 'text/html'.
  XHTMLFile
This class adds one thing to the XML class, the semantics of translatable text.
Functions
 
HTMLParser(data)
 
sanitize_str(str)
 
sanitize_stream(stream)
Method that removes potentially dangerous HTML tags and attributes from the events
 
stream_to_str_as_html(stream, encoding='UTF-8')
 
stream_to_str_as_xhtml(stream, encoding='UTF-8')
Variables
  xhtml_doctype = <itools.xml.parser.DocType object at 0xfb6090>
  xhtml_uri = 'http://www.w3.org/1999/xhtml'