mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
strip <style> tags as well
This commit is contained in:
parent
91afe651b3
commit
b136e505b0
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ def fmtFloat(float_value, point=1):
|
|||
##############################################################################
|
||||
|
||||
def stripHTML(s):
|
||||
s = re.sub("(?s)<style.*?>.*?</style>", "", s)
|
||||
s = re.sub("<.*?>", "", s)
|
||||
s = s.replace("<", "<")
|
||||
s = s.replace(">", ">")
|
||||
|
|
Loading…
Reference in a new issue