From 00ebe352acce3fbdf05a00534de9635058fd314a Mon Sep 17 00:00:00 2001 From: trigg Date: Tue, 20 Oct 2020 18:58:06 +0000 Subject: [PATCH] - Re fixed sanitizing --- discover_overlay/text_overlay.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/discover_overlay/text_overlay.py b/discover_overlay/text_overlay.py index 50f49f0..99a337b 100644 --- a/discover_overlay/text_overlay.py +++ b/discover_overlay/text_overlay.py @@ -303,9 +303,9 @@ class TextOverlayWindow(OverlayWindow): """ Sanitize a text message so that it doesn't intefere with Pango's XML format """ - string.replace("&", "&") - string.replace("<", "<") - string .replace(">", ">") - string.replace("'", "'") - string.replace("\"", """) + string = string.replace("&", "&") + string = string.replace("<", "<") + string = string .replace(">", ">") + string = string.replace("'", "'") + string = string.replace("\"", """) return string