Skip to main content

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

Download files

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

Source Distribution

htmlentities-0.3.0.macosx-10.15-x86_64.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

htmlentities-0.3.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for htmlentities-0.3.0.macosx-10.15-x86_64.tar.gz
Algorithm Hash digest
SHA256 e4200fa85b90912fc901c7adf56f6d94e2804d1fa09d85cef351a3434595b42a
MD5 1ce35d50ac453ee61bf37190189fc3d8
BLAKE2b-256 2c1354efc16f830980c77ab864e5b7193333da7978acf2e7498770347b6b1aed

See more details on using hashes here.

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

Hashes for htmlentities-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62cb5a1d7b53f78780c9b6a1797c36f7f600256f436304c726cbd84edca65a48
MD5 f594975729fe9290e64ffa75abbbad59
BLAKE2b-256 ef4275959b4c2fa485a97c9f12bf41dc842ab78efa6e67f35f8be9d0e456da7b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.1

1 file

0.2

1 file

0.1.1

1 file

0.1

1 file

Supported by

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