Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

HTML Entities for Python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
htmlentities-0.2.1.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None Nov 6, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page