Replace trailing href

master
Bob Mottram 2019-08-30 17:20:34 +01:00
parent af10d731a2
commit 041ed5bf53
1 changed files with 2 additions and 2 deletions

View File

@ -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('"'):