diff --git a/files/routes/posts.py b/files/routes/posts.py index 5b912bc04..e5c2c2f1e 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1,5 +1,6 @@ import os import time +import html from io import BytesIO from os import path from shutil import copyfile @@ -1098,4 +1099,6 @@ def get_post_title(v): title = match.group(1) else: abort(400) + title = html.unescape(title) + return {"url": url, "title": title}