mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-09 00:45:05 +02:00
Update:Html sanitizer to allow br tag
This commit is contained in:
parent
9c6b07df99
commit
0d50d730d9
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ const {entities} = require("./htmlEntities");
|
|||
function sanitize(html) {
|
||||
const sanitizerOptions = {
|
||||
allowedTags: [
|
||||
'p', 'ol', 'ul', 'li', 'a', 'strong', 'em', 'del'
|
||||
'p', 'ol', 'ul', 'li', 'a', 'strong', 'em', 'del', 'br'
|
||||
],
|
||||
disallowedTagsMode: 'discard',
|
||||
allowedAttributes: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue