namedentities 1.6.0

Simple way to convert numeric HTML entities to far more readable named entities

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Jonathan Eunice
HOMEPAGE:
bitbucket.org
CATEGORY:
ROOT \ Text Editing&Processing \ Markup
namedentities is a simple way to convert numeric HTML entities to far more readable named entities.

Installation

pip install namedentities

Failing that, fall back to the older approach:

easy_install namedentities

(You may need to begin these with "sudo " to authorize installation.)

NOTA BENE Code runs successfully under Python 3, but packaging seemingly doesn't work as yet.

Usage

Python 2:

from namedentities import named_entities

u = u'both em\u2014and–dashes…'
print named_entities(u)


Python 3:

from namedentities import named_entities

u = 'both em\u2014and–dashes…'
print(named_entities(u))

Last updated on May 22nd, 2012

requirements

#numeric HTML #numeric converter #numeric #HTML #converter #markup

Add your review!

SUBMIT