skip to navigation
skip to content

Not Logged In

htmlentities 0.2.1

HTML Entities for Python

HTML Entities for Python

Installing

For install python-htmlentities, run on terminal:

$ [sudo] pip install htmlentities

Using htmlentities

encoding

You can encode a char to your htmlentitie relative using encode method:

import htmlentities

htmlentities.encode('<') # returns "&lt"

decoding

You can decode a htmlentitie to your relative char using decode method:

import htmlentities

htmlentities.decode('&lt') # returns "<"

development

Pull requests are very welcomed! Make sure your patches are well tested.

running the tests

if you are using a virtualenv, all you need is:

$ make test

community

irc channel

#cobrateam channel on irc.freenode.net

 
File Type Py Version Uploaded on Size
htmlentities-0.2.1.tar.gz (md5) Source 2011-11-06 1KB
  • Downloads (All Versions):
  • 11 downloads in the last day
  • 38 downloads in the last week
  • 344 downloads in the last month