home » zplus/freepost.git
Author zPlus <zplus@peers.community> 2018-11-18 13:47:09
Committer zPlus <zplus@peers.community> 2018-11-18 13:47:09
Commit dcf77d7 (patch)
Tree 41777ab
Parent(s)

Add <br> to ALLOWED_TAGS.


commits diff: a9475ad..dcf77d7
1 file changed, 1 insertion, 1 deletiondownload


Diffstat
-rwxr-xr-x freepost/__init__.py 2

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+1/-1 M   freepost/__init__.py
index 64432b0..10d290f
old size: 25K - new size: 25K
@@ -64,7 +64,7 @@ template = functools.partial (
64 64 # "bleach" library is used to sanitize the HTML output of jinja2's "md2html"
65 65 # filter. The library has only a very restrictive list of white-listed
66 66 # tags, so we add some more here.
67 - bleach.sanitizer.ALLOWED_TAGS += [ 'p', 'pre', 'img' ]
67 + bleach.sanitizer.ALLOWED_TAGS += [ 'br', 'img', 'p', 'pre' ]
68 68 bleach.sanitizer.ALLOWED_ATTRIBUTES.update ({
69 69 'img': [ 'src' ]
70 70 })