dfsdsf
This commit is contained in:
parent
9ae9b8da07
commit
6d3110ed15
17 changed files with 37 additions and 36 deletions
|
@ -84,8 +84,6 @@ allowed_styles =['color', 'font-weight', 'transform', '-webkit-transform']
|
|||
def sanitize(sanitized, noimages=False):
|
||||
|
||||
sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com")
|
||||
sanitized = re.sub("</blockquote>$", "</blockquote><pre></pre>", sanitized)
|
||||
sanitized = re.sub("^<blockquote>", "<pre></pre><blockquote>", sanitized)
|
||||
|
||||
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