Html entities

Alex Martelli aleaxit at yahoo.com
Wed Mar 21 10:32:10 EST 2001


"Doug Fort" <dougfort at downright.com> wrote in message
news:3AB8BA56.9E41A333 at downright.com...
> Syver Enstad wrote:
>
> > Is there an easy way to convert ISO Latin-1 characters that are above
127
> > ascii to their HTML, XML entity form?
>
> See 'htmlentitydefs' in the Python library

This maps entitydef->ISO-Latin-1-character -- you'll need to
'reverse the dictionary' for Syver's purposes.


Alex






More information about the Python-list mailing list