mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2025-01-03 10:59:14 +01: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')
|
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||||
|
|
||||||
# Sanitizer settings
|
# Sanitizer settings
|
||||||
SANITIZER_ALLOWED_TAGS = ['a', 'p', 'img', 'br', 'i', 'strong']
|
SANITIZER_ALLOWED_TAGS = ['a', 'p', 'img', 'br', 'i', 'strong', 'em', 'pre', 'code',
|
||||||
SANITIZER_ALLOWED_ATTRIBUTES = ['href', 'src', 'title', 'alt', 'class']
|
'ul', 'li', 'ol', 'blockquote', 'del', 'span', 'u']
|
||||||
|
SANITIZER_ALLOWED_ATTRIBUTES = ['href', 'src', 'title', 'alt', 'class', 'lang']
|
||||||
|
|
||||||
# File upload settings.
|
# File upload settings.
|
||||||
# Important: media will not work if you change this.
|
# Important: media will not work if you change this.
|
||||||
|
Loading…
Reference in New Issue
Block a user