From 279b3105eeedce0744b73c195758b3c6b99f4dc5 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sun, 26 Aug 2018 15:59:37 -0500 Subject: [PATCH] Small fix for <> appearing in text format. --- fanficfare/htmlcleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficfare/htmlcleanup.py b/fanficfare/htmlcleanup.py index fb0258a0..41571a51 100644 --- a/fanficfare/htmlcleanup.py +++ b/fanficfare/htmlcleanup.py @@ -131,7 +131,7 @@ def removeEntities(text, space_only=False, remove_all_entities=False): text = _replaceNotEntities(text) if remove_all_entities: - text = text.replace('<', '<').replace('>', '>').replace('&', '&') + text = text.replace('<', '<').replace('>', '>').replace('&', '&') else: # < > and & are the only html entities allowed in xhtml, put those back. # They come out as < because _replaceNotEntities removes the ';'.