diff --git a/main.py b/main.py index fd03988..f07ffe4 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ import os import base64 +import html from flask import Flask, request from model import Message @@ -22,7 +23,6 @@ def home(): -

Wisdom From Your Fellow Classmates

""" @@ -31,12 +31,11 @@ def home():
{}
-""".format(m.content) +""".format(html.escape(m.content)) return body if __name__ == "__main__": port = int(os.environ.get("PORT", 6738)) - app.run(host='0.0.0.0', port=port) - + app.run(host='0.0.0.0', port=port) \ No newline at end of file