Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
bringing sanity to world of messed-up data
Python
branch: master

markdown

latest commit 9365915864
@aaronsw authored
Failed to load latest commit information.
COPYING add README, COPYING
README.md markdown
sanitize.py import 0.32
sanitize_test.py import 0.32
setup.py release 0.33

README.md

sanitize is a Python module for making sure various things (e.g. HTML) are safe to use. It was originally written by Mark Pilgrim and is distributed under the BSD license.

Usage:

>>> import sanitize
>>> sanitize.HTML('safe<meta http-equiv="Refresh" content="0; URL=/">')
'safe'

How to do a release

  1. Update the version in sanitize.py
  2. Update the version in setup.py
  3. Run the test cases: python sanitize_test.py
  4. Run python setup.py sdist upload
  5. git commit -am "released version XX"
  6. git push
Something went wrong with that request. Please try again.