forked from rDrama/rDrama
master
parent
555941cfc7
commit
60d0ff395c
|
@ -391,7 +391,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys
|
||||||
else:
|
else:
|
||||||
existing = g.db.get(Group, name)
|
existing = g.db.get(Group, name)
|
||||||
if existing:
|
if existing:
|
||||||
sanitized = sanitized.replace(i.group(0), f'{i.group(1)}<a href="/!{i.group(2)}">!{i.group(2)}</a>')
|
sanitized = sanitized.replace(i.group(0), f'{i.group(1)}<a href="/!{i.group(2)}">!{i.group(2)}</a>', 1)
|
||||||
|
|
||||||
soup = BeautifulSoup(sanitized, 'lxml')
|
soup = BeautifulSoup(sanitized, 'lxml')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue