forbid mentions in sigs

This commit is contained in:
2025-12-04 05:36:57 +03:00
parent 062cab44bc
commit 73af2dc3b9
5 changed files with 10 additions and 4 deletions

View File

@@ -252,7 +252,7 @@ def should_collapse(text, surrounding):
def sanitize(s):
return escape(s.strip().replace('\r\n', '\n').replace('\r', '\n'))
def babycode_to_html(s, banned_tags={}):
def babycode_to_html(s, banned_tags=[]):
allowed_tags = set(TAGS.keys())
if banned_tags is not None:
for tag in banned_tags: