htmlentities, htmlspecialchars

G

Gandalf

Hi all! I'm writting a web application using IIS and Python. I would
like to have the Python equvalient of the PHP functions 'htmlentities'
and 'htmlspecialchars'. E.g. to convert

a' >>>> aacute;
õ >>>> otilde;

and the others. I looked for them in many libraries (urllib, htmllib,
urlparse etc.) but I could only find the 'urlencode' function. I could
not find anything on google ('python htmlentities equvalent'). Please
help me find it out. Thanks in advance.

G
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,518
Latest member
TobiasAxf

Latest Threads

Top