mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Small fix for <> appearing in text format.
This commit is contained in:
parent
769d5a77c2
commit
279b3105ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ';'.
|
||||
|
|
|
|||
Loading…
Reference in a new issue