From 041ed5bf535ded843ba7e18c5e227c200eea76cd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Aug 2019 17:20:34 +0100 Subject: [PATCH] Replace trailing href --- webinterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index b7ce6eec2..19b5ceb07 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1191,7 +1191,7 @@ def addEmbeddedAudio(content: str) -> str: for w in words: if extension not in w: continue - w=w.replace('href="','') + w=w.replace('href="','').replace('">','') if w.endswith('.'): w=w[:-1] if w.endswith('"'): @@ -1228,7 +1228,7 @@ def addEmbeddedVideo(content: str,width=400,height=300) -> str: for w in words: if extension not in w: continue - w=w.replace('href="','') + w=w.replace('href="','').replace('">','') if w.endswith('.'): w=w[:-1] if w.endswith('"'):