escape html < and > chars
This commit is contained in:
parent
c8d70a3661
commit
78def54645
@ -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:
|
||||
|
Reference in New Issue
Block a user