diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2017-08-19 21:40:53 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2017-08-19 21:40:53 +0800 |
commit | 95f3f7c20a05e7ac490e768b8470b20538ef8581 (patch) | |
tree | fb04d34cdd3f55d0421b7e568201e5cba6dde4ba /youtube_dl/utils.py | |
parent | f5469da9e6e259c1690c7ef54f1da1c19f65036f (diff) |
[utils] Fix unescapeHTML for misformed string like "&a"" (#13935)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index c9cbd5842..2554a2abd 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -596,7 +596,7 @@ def unescapeHTML(s): assert type(s) == compat_str return re.sub( - r'&([^;]+;)', lambda m: _htmlentity_transform(m.group(1)), s) + r'&([^&;]+;)', lambda m: _htmlentity_transform(m.group(1)), s) def get_subprocess_encoding(): |