mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
[utils] Fix unescapeHTML for misformed string like "&a"" (#13935)
This commit is contained in:
parent
f5469da9e6
commit
95f3f7c20a
3 changed files with 8 additions and 1 deletions
|
@ -279,6 +279,7 @@ class TestUtil(unittest.TestCase):
|
|||
self.assertEqual(unescapeHTML('/'), '/')
|
||||
self.assertEqual(unescapeHTML('é'), 'é')
|
||||
self.assertEqual(unescapeHTML('�'), '�')
|
||||
self.assertEqual(unescapeHTML('&a"'), '&a"')
|
||||
# HTML5 entities
|
||||
self.assertEqual(unescapeHTML('.''), '.\'')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue