add i and span to allowed tags

This commit is contained in:
lesion 2021-10-25 13:17:49 +02:00
parent 5002e43399
commit 83a5ebc5e1
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -57,7 +57,7 @@ module.exports = {
sanitizeHTML (html) {
return domPurify.sanitize(html, {
ALLOWED_TAGS: ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'br',
ALLOWED_TAGS: ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'br', 'i', 'span',
'h6', 'b', 'a', 'li', 'ul', 'ol', 'code', 'blockquote', 'u', 's', 'strong'],
ALLOWED_ATTR: ['href', 'target']
})