A feature-rich command-line audio/video downloader
[utils] Fix inconsistent output of clean_html
Tithen-Firionedd9221cd226
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.pyindex 91e235ff2f..41bc205446 100644--- a/youtube_dl/utils.py+++ b/youtube_dl/utils.py@@ -421,8 +421,8 @@ def clean_html(html):# Newline vs <br />html = html.replace('\n', ' ')- 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)+ html = re.sub(r'(?u)\s*<\s*br\s*/?\s*>\s*', '\n', html)+ html = re.sub(r'(?u)<\s*/\s*p\s*>\s*<\s*p[^>]*>', '\n', html)# Strip html tagshtml = re.sub('<.*?>', '', html)# Replace html entities