dfsfd
This commit is contained in:
parent
f0994a255d
commit
74406f58d7
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ allowed_styles = ['color', 'background-color', 'font-weight', 'transform', '-web
|
|||
|
||||
def sanitize(sanitized, noimages=False):
|
||||
|
||||
sanitized = sanitized.replace("\ufeff", "").replace("𒐪","")
|
||||
sanitized = sanitized.replace("\ufeff", "").replace("𒐪","").replace("<script>","").replace("</script>","")
|
||||
|
||||
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