diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index e1cfc21eb..b613c92fd 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -79,7 +79,7 @@ allowed_attributes = {'*': ['href', 'style', 'src', 'class', 'title', 'rel', 'da allowed_protocols = ['http', 'https'] -allowed_styles = ['color', 'font-weight', 'transform', '-webkit-transform'] +allowed_styles = ['color', 'background-color', 'font-weight', 'transform', '-webkit-transform'] def sanitize(sanitized, noimages=False): diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 230c27fc3..a6af7ae53 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -475,6 +475,11 @@ line breaks