aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2017-08-19 21:40:53 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2017-08-19 21:40:53 +0800
commit95f3f7c20a05e7ac490e768b8470b20538ef8581 (patch)
treefb04d34cdd3f55d0421b7e568201e5cba6dde4ba /test
parentf5469da9e6e259c1690c7ef54f1da1c19f65036f (diff)
[utils] Fix unescapeHTML for misformed string like "&a&quot;" (#13935)
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 2aab16b97..e50f3764e 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -279,6 +279,7 @@ class TestUtil(unittest.TestCase):
self.assertEqual(unescapeHTML('&#47;'), '/')
self.assertEqual(unescapeHTML('&eacute;'), 'é')
self.assertEqual(unescapeHTML('&#2013266066;'), '&#2013266066;')
+ self.assertEqual(unescapeHTML('&a&quot;'), '&a"')
# HTML5 entities
self.assertEqual(unescapeHTML('&period;&apos;'), '.\'')