Skip to main content

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

Project details


Download files

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

Source Distribution

htmlentitiesdecode-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file htmlentitiesdecode-0.1.1.tar.gz.

File metadata

File hashes

Hashes for htmlentitiesdecode-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6110b4d4ae95a4786cb607196deea75ad8b86db585ac60fd11aa7fa4c44e52f6
MD5 6f68612cf1212baac0c6f0f698e0480c
BLAKE2b-256 c4e43faff5bc66bb14781b1091e7cf2d100a78ab9404f4f09330836f826d5973

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page