mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 05:40:00 +08:00
fix regex in utils to avoid breaking json structure
This commit is contained in:
parent
7308b8cb3d
commit
2da2922b00
@ -260,7 +260,7 @@ def clean_html(html):
|
||||
html = re.sub(r'\s*<\s*br\s*/?\s*>\s*', '\n', html)
|
||||
html = re.sub(r'<\s*/\s*p\s*>\s*<\s*p[^>]*>', '\n', html)
|
||||
# Strip html tags
|
||||
html = re.sub('<.*?>', '', html)
|
||||
html = re.sub('<[^"]*>', '', html)
|
||||
# Replace html entities
|
||||
html = unescapeHTML(html)
|
||||
return html.strip()
|
||||
|
Loading…
x
Reference in New Issue
Block a user