From dcf77d74cdce47c10ba3498f0eb9ed6fa48673b7 Mon Sep 17 00:00:00 2001 From: zPlus Date: Sun, 18 Nov 2018 14:47:09 +0100 Subject: [PATCH] Add
to ALLOWED_TAGS. --- freepost/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freepost/__init__.py b/freepost/__init__.py index 64432b09..10d290f8 100755 --- a/freepost/__init__.py +++ b/freepost/__init__.py @@ -64,7 +64,7 @@ template = functools.partial ( # "bleach" library is used to sanitize the HTML output of jinja2's "md2html" # filter. The library has only a very restrictive list of white-listed # tags, so we add some more here. -bleach.sanitizer.ALLOWED_TAGS += [ 'p', 'pre', 'img' ] +bleach.sanitizer.ALLOWED_TAGS += [ 'br', 'img', 'p', 'pre' ] bleach.sanitizer.ALLOWED_ATTRIBUTES.update ({ 'img': [ 'src' ] })