diff options
| author | Chris Khoo <chris.khoo@gmail.com> | 2012-11-24 12:10:25 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-11-24 12:16:52 +0100 |
| commit | bf1871d874a371ad0ae6c7e098e7665a468dca16 (patch) | |
| tree | 833b662d68f6549980d500460779f533aa14526b /tests | |
| parent | be64dd35fbb9b2b49fa5774b7e7f777df8351c1a (diff) | |
Fixed #19237 -- Improved strip_tags utility
The previous pattern didn't properly addressed cases where '>'
was present inside quoted tag content.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/utils/html.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): ('<f', '<f'), ('</fe', '</fe'), ('<x>b<y>', 'b'), + ('a<p onclick="alert(\'<test>\')">b</p>c', 'abc'), + ('a<p a >b</p>c', 'abc'), + ('d<a:b c:d>e</p>f', 'def'), ) for value, output in items: self.check_output(f, value, output) |
