diff --git a/notes2web.py b/notes2web.py index 0d6dae0..176e52d 100755 --- a/notes2web.py +++ b/notes2web.py @@ -211,7 +211,7 @@ def main(args): html = re.sub(r'\$raw\$', os.path.basename(filename), html) html = html.replace('$filehistory$', filehistory) with open(filename) as fp: - html += fp.read() + html += fp.read().replace("<", "<").replace(">", ">") html += TEXT_ARTICLE_TEMPLATE_FOOT with open(output_filename, 'w+') as fp: