diff --git a/webinterface.py b/webinterface.py index b7ce6eec..19b5ceb0 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('"'):