From b04c2212b559b9acc31f4c6efcd0a9c058cc89be Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 30 Sep 2017 15:33:05 +1000 Subject: [PATCH] stripHTML() should work when tag split over multiple lines --- anki/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/utils.py b/anki/utils.py index 12703deca..39afc1c7c 100644 --- a/anki/utils.py +++ b/anki/utils.py @@ -127,7 +127,7 @@ def fmtFloat(float_value, point=1): ############################################################################## reStyle = re.compile("(?si).*?") reScript = re.compile("(?si).*?") -reTag = re.compile("<.*?>") +reTag = re.compile("(?s)<.*?>") reEnts = re.compile("&#?\w+;") reMedia = re.compile("(?i)]+src=[\"']?([^\"'>]+)[\"']?[^>]*>")