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 deletion
—
download
Diffstat
Diff options
+1/-1
M freepost/__init__.py
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
|
|
})
|