Converting text to html

achrist at achrist at
Sat Apr 5 00:26:09 CEST 2003

Is there any recommended code available to convert plain text into
text that can go into an html document without breaking it?  I 
think that I just have to do these three translations:

	< =>  <	> =>  >   & 	=>  &

But I'm not sure if there are any others.  I've got to do this 
quite a bit while the user is waiting, so it would be nice to
have something that did it in a way that was not a lot slower
than any of the alternatives.  

Surely someone must have cracked this nut sys.maxint times by now.



More information about the Python-list mailing list