diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index e1cfc21ebf..b613c92fd6 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 230c27fc33..a6af7ae538 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -475,6 +475,11 @@ line breaks + + background-color + + + font-weight