HTML Entities for Python
For install python-htmlentities, run on terminal:
$ [sudo] pip install htmlentities
You can encode a char to your htmlentitie relative using encode method:
import htmlentities
htmlentities.encode('<') # returns "<"
You can decode a htmlentitie to your relative char using decode method:
import htmlentities
htmlentities.decode('<') # returns "<"
- Source hosted at GitHub
 - Report issues on GitHub Issues
 
Pull requests are very welcomed! Make sure your patches are well tested.
if you are using a virtualenv, all you need is:
$ make test
#cobrateam channel on irc.freenode.net