Author
|
zPlus <zplus@peers.community>
2020-06-05 05:44:26
|
Committer
|
zPlus <zplus@peers.community>
2020-06-05 05:44:26
|
Commit
|
eaf8485
(patch)
|
Tree
|
2f885d9
|
Parent(s)
|
|
Whitelist "hr" HTML tag.
commits diff:
ce0bbd9..eaf8485
1 file changed,
1 insertion,
1 deletion
—
download
Diffstat
Diff options
+1/-1
M freepost/__init__.py
66
|
66
|
|
# "bleach" library is used to sanitize the HTML output of jinja2's "md2html"
|
67
|
67
|
|
# filter. The library has only a very restrictive list of white-listed
|
68
|
68
|
|
# tags, so we add some more here.
|
69
|
|
- |
bleach.sanitizer.ALLOWED_TAGS += [ 'br', 'img', 'p', 'pre', 'h1', 'h2', 'h3' ]
|
|
69
|
+ |
bleach.sanitizer.ALLOWED_TAGS += [ 'br', 'img', 'p', 'pre', 'h1', 'h2', 'h3', 'hr' ]
|
70
|
70
|
|
bleach.sanitizer.ALLOWED_ATTRIBUTES.update ({
|
71
|
71
|
|
'img': [ 'src' ]
|
72
|
72
|
|
})
|