Commit ca0fb68e authored by Mindiell's avatar Mindiell

moar html entities conversion

parent 22404073
......@@ -71,10 +71,11 @@ def get_title(message):
pass
# Unescaping HTML entities
if title:
title = re.sub(">", ">", title)
title = re.sub("&lt;", "<", title)
title = re.sub("&quot;", '"', title)
title = re.sub("&amp;", "&", title)
title = re.sub("&gt;|&#062;", ">", title)
title = re.sub("&lt;|&#060;", "<", title)
title = re.sub("&quot;|&#034;", '"', title)
title = re.sub("&apos;|&#039;", "'", title)
title = re.sub("&amp;|&#038;", "&", title)
return (title, website)
def is_moderator(name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment