Is there a Text to HTML conversion module?

Michael Chermside mcherm at destiny.com
Mon Jun 3 21:29:39 CEST 2002


> Does anyone know of a module that converts a text file to html?

Sure!

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


<wink>

(sorry... couldn't resist)

-- Michael Chermside









More information about the Python-list mailing list