whitelist table class for tables in sanitizer
parent
f0fd7d3ffd
commit
6a56f036cb
|
@ -102,6 +102,9 @@ def allowed_attributes(tag, name, value):
|
||||||
if name == 'alt': return True
|
if name == 'alt': return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if tag == 'table':
|
||||||
|
if name == 'class' and value == 'table': return True
|
||||||
|
return False
|
||||||
|
|
||||||
def build_url_re(tlds, protocols):
|
def build_url_re(tlds, protocols):
|
||||||
"""Builds the url regex used by linkifier
|
"""Builds the url regex used by linkifier
|
||||||
|
|
Loading…
Reference in New Issue