Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Decode html entities.

Project Description

This module makes it easy to decode html entities in strings.

License

htmlentitiesdecode is free software under the terms of the Do What The Fuck You Want To Public License version 2 (or any later version). The author of htmlentities is Niels Serup, contactable at ns@metanohi.org. This is version 0.1.1 of the program.

Installing

If you have python-setuptools installed, you can just do this:

$ sudo easy_install htmlentitiesdecode

Alternatively, download and extract the gzipped tarball found on this very page, and then run this:

$ sudo python setup.py install

The newest version of htmlentitiesdecode is always available at http://metanohi.org/projects/htmlentitiesdecode/ and at the Python Package Index.

Using

This module has only one main function: decode. Example usage:

>>> from htmlentitiesdecode import decode as entity_decode
>>> print entity_decode('Wie heißt du?')
Wie heißt du?
>>> print entity_decode('Ich heiße "htmlentitiesdecode".')
Ich heiße "htmlentitiesdecode".
>>> print entity_decode('Wir heißen "modules".')
Wir heißen "modules".

Running

When this module has been installed, you will have both a module and a command-line script that uses the decode function of the module. This script can be run this way:

$ decodehtmlentities TEXT

Changelog

  • Version 0.1.0: Initial release
  • Version 0.1.1: Fixed error in README
Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
htmlentitiesdecode-0.1.1.tar.gz (2.9 kB) Copy SHA256 Checksum SHA256 Source Aug 19, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting