dsfsfd
This commit is contained in:
parent
53e6445106
commit
3d0e8973cc
13 changed files with 381 additions and 390 deletions
|
@ -83,7 +83,7 @@ allowed_styles =['color', 'font-weight', 'transform', '-webkit-transform']
|
|||
|
||||
def sanitize(sanitized, noimages=False):
|
||||
|
||||
sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com")
|
||||
sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com").replace("</blockquote></div>", "</blockquote></div><pre></pre>")
|
||||
|
||||
for i in re.finditer('https://i.imgur.com/(([^_]*?)\.(jpg|png|jpeg))', sanitized):
|
||||
sanitized = sanitized.replace(i.group(1), i.group(2) + "_d." + i.group(3) + "?maxwidth=9999")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue