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 "<"
decoding
You can decode a htmlentitie to your relative char using decode method:
import htmlentities htmlentities.decode('<') # returns "<"
development
Source hosted at GitHub
Report issues on GitHub Issues
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.
Source Distribution
Built Distribution
File details
Details for the file htmlentities-0.3.0.macosx-10.15-x86_64.tar.gz
.
File metadata
- Download URL: htmlentities-0.3.0.macosx-10.15-x86_64.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4200fa85b90912fc901c7adf56f6d94e2804d1fa09d85cef351a3434595b42a |
|
MD5 | 1ce35d50ac453ee61bf37190189fc3d8 |
|
BLAKE2b-256 | 2c1354efc16f830980c77ab864e5b7193333da7978acf2e7498770347b6b1aed |
File details
Details for the file htmlentities-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: htmlentities-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62cb5a1d7b53f78780c9b6a1797c36f7f600256f436304c726cbd84edca65a48 |
|
MD5 | f594975729fe9290e64ffa75abbbad59 |
|
BLAKE2b-256 | ef4275959b4c2fa485a97c9f12bf41dc842ab78efa6e67f35f8be9d0e456da7b |