From 9efe1a7210ee161d5688f66a759bcd8d89d33142 Mon Sep 17 00:00:00 2001 From: Chris Khoo Date: Sat, 24 Nov 2012 12:10:25 +0100 Subject: [1.5.x] Fixed #19237 -- Improved strip_tags utility The previous pattern didn't properly addressed cases where '>' was present inside quoted tag content. Backport of bf1871d87 from master. --- tests/regressiontests/utils/html.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/regressiontests/utils/html.py b/tests/regressiontests/utils/html.py index 6a93dff85e..a0226c4765 100644 --- a/tests/regressiontests/utils/html.py +++ b/tests/regressiontests/utils/html.py @@ -65,6 +65,9 @@ class TestUtilsHtml(unittest.TestCase): ('b', 'b'), + ('a

b

c', 'abc'), + ('a

b

c', 'abc'), + ('de

f', 'def'), ) for value, output in items: self.check_output(f, value, output) -- cgit v1.3