Strip-o-Gram HTML Conversion Library

  This is a library for converting HTML to Plain Text
  and stripping specified tags from HTML.

Usage

  from stripogram import html2text, html2safehtml

  mylumpofdodgyhtml # a lump of dodgy html ;-)

  mylumpofcoolcleancollectedhtml = html2safehtml(mylumpofdodgyhtml,valid_tags=('b', 'a', 'i', 'br', 'p'))

  mylumpoftext = html2text(mylumpofcoolcleancollectedhtml)

  If you want more information on how it works, read the source :-)

Licensing

  Copyright (c) 2001 Chris Withers

  This Software is released under the MIT License:
  http://www.opensource.org/licenses/mit-license.html
  See license.txt for more details.

Credits

  Itamar Shtull-Trauring for the original HTML Filter.
  Oleg Broytmann for the pre-original HTML Filter.
  Andy McKay for the testing he has done.
  Rik Hoekstra for a patch to html2text.

Changes

  1.0

    - First release as a seperate module.