Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cobrateam/python-htmlentities
HTML Entities for Python
https://github.com/cobrateam/python-htmlentities
Last synced: 3 days ago
JSON representation
HTML Entities for Python
- Host: GitHub
- URL: https://github.com/cobrateam/python-htmlentities
- Owner: cobrateam
- Created: 2011-07-15T22:43:50.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2018-09-21T03:09:28.000Z (about 6 years ago)
- Last Synced: 2024-10-31T22:32:56.371Z (11 days ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 14
- Watchers: 15
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
+++++++++++++++++++
python-htmlentities
+++++++++++++++++++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