Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 "&lt"

decoding
--------

You can decode a htmlentitie to your relative char using ``decode`` method: ::

import htmlentities

htmlentities.decode('&lt') # 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