diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 50d2ed518..3f102bc6f 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -85,7 +85,8 @@ def sanitize(sanitized, noimages=False): print(sanitized) print('\n\n') - sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com").replace("", "
")
+	sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com")
+	sanitized = re.sub("$", "
", sanitized)
 	print(sanitized)
 
 	for i in re.finditer('https://i.imgur.com/(([^_]*?)\.(jpg|png|jpeg))', sanitized):