mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-23 07:13:52 -05:00
Add the inline and block tags that Pleroma permits to our scrubber
Tags that are not supported: - inline images - table tags - header tags I may reconsider header tags later.
This commit is contained in:
parent
2d3d88da72
commit
5e9feab403
@ -178,8 +178,9 @@ STATIC_URL = '/static/'
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||
|
||||
# Sanitizer settings
|
||||
SANITIZER_ALLOWED_TAGS = ['a', 'p', 'img', 'br', 'i', 'strong']
|
||||
SANITIZER_ALLOWED_ATTRIBUTES = ['href', 'src', 'title', 'alt', 'class']
|
||||
SANITIZER_ALLOWED_TAGS = ['a', 'p', 'img', 'br', 'i', 'strong', 'em', 'pre', 'code',
|
||||
'ul', 'li', 'ol', 'blockquote', 'del', 'span', 'u']
|
||||
SANITIZER_ALLOWED_ATTRIBUTES = ['href', 'src', 'title', 'alt', 'class', 'lang']
|
||||
|
||||
# File upload settings.
|
||||
# Important: media will not work if you change this.
|
||||
|
Loading…
Reference in New Issue
Block a user