1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-07 16:33:31 +08:00

fix regex in utils to avoid breaking json structure

This commit is contained in:
Hynek Jemelik
2015-10-21 10:13:24 +02:00
Unverified
parent 7308b8cb3d
commit 2da2922b00
+1 -1
View File
@@ -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()