whitelist table class for tables in sanitizer

pull/59/head
geese_suck 2022-12-09 13:04:22 -08:00
parent f0fd7d3ffd
commit 6a56f036cb
Signed by: geese_suck
GPG Key ID: 4D09E4B0A7264746
1 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,9 @@ def allowed_attributes(tag, name, value):
if name == 'alt': return True
return False
if tag == 'table':
if name == 'class' and value == 'table': return True
return False
def build_url_re(tlds, protocols):
"""Builds the url regex used by linkifier