Skip to content

Commit

Permalink
UnicodeFileToHtmTextConverter/Python: reverted back from html module …
Browse files Browse the repository at this point in the history
…to cgi module
  • Loading branch information
Luca Minudel committed Oct 8, 2013
1 parent 632eca3 commit f9e73ae
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,4 +1,4 @@
import html as html_converter
import cgi

class UnicodeFileToHtmlTextConverter(object):

Expand All @@ -10,7 +10,7 @@ def convert_to_html(self):
html = ""
for line in f:
line = line.rstrip()
html += html_converter.escape(line, quote=True)
html += cgi.escape(line, quote=True)
html += "<br />"

return html

0 comments on commit f9e73ae

Please sign in to comment.