Is there a Text to HTML conversion module?

Andrew Dalke dalke at dalkescientific.com
Mon Jun 3 23:19:24 CEST 2002


Michael Chermside:
>def textToHtml(text):
>     return '<html><body><pre>%s</pre></body></head>' % text

import cgi
def textToHtml(text):
     return '<html><body><pre>%s</pre></body></html>' % cgi.escape(text)

><wink>

<wink/>

>(sorry... couldn't resist)

Neither could I.  :)

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list