mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-22 15:29:52 +00:00
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 = re.sub(r'\$raw\$', os.path.basename(filename), html)
|
||||||
html = html.replace('$filehistory$', filehistory)
|
html = html.replace('$filehistory$', filehistory)
|
||||||
with open(filename) as fp:
|
with open(filename) as fp:
|
||||||
html += fp.read()
|
html += fp.read().replace("<", "<").replace(">", ">")
|
||||||
html += TEXT_ARTICLE_TEMPLATE_FOOT
|
html += TEXT_ARTICLE_TEMPLATE_FOOT
|
||||||
|
|
||||||
with open(output_filename, 'w+') as fp:
|
with open(output_filename, 'w+') as fp:
|
||||||
|
Loading…
Reference in New Issue
Block a user