forked from 00dani/lemoncurry
Add <pre> to the list of acceptable tags so that code blocks work
This commit is contained in:
parent
7b4f5d3ac1
commit
cd075a8ce2
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ from django.utils.safestring import mark_safe
|
||||||
from bleach.sanitizer import Cleaner, ALLOWED_TAGS
|
from bleach.sanitizer import Cleaner, ALLOWED_TAGS
|
||||||
from bleach.linkifier import LinkifyFilter
|
from bleach.linkifier import LinkifyFilter
|
||||||
|
|
||||||
tags = ['code', 'p', 'img', 'span']
|
tags = ['code', 'p', 'pre', 'img', 'span']
|
||||||
tags.extend(ALLOWED_TAGS)
|
tags.extend(ALLOWED_TAGS)
|
||||||
attributes = {
|
attributes = {
|
||||||
'a': ('href', 'title', 'class'),
|
'a': ('href', 'title', 'class'),
|
||||||
|
|
Loading…
Reference in a new issue