mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Update:Html sanitizer to allow br tag
This commit is contained in:
parent
9c6b07df99
commit
0d50d730d9
@ -1,10 +1,10 @@
|
|||||||
const sanitizeHtml = require('../libs/sanitizeHtml')
|
const sanitizeHtml = require('../libs/sanitizeHtml')
|
||||||
const {entities} = require("./htmlEntities");
|
const { entities } = require("./htmlEntities");
|
||||||
|
|
||||||
function sanitize(html) {
|
function sanitize(html) {
|
||||||
const sanitizerOptions = {
|
const sanitizerOptions = {
|
||||||
allowedTags: [
|
allowedTags: [
|
||||||
'p', 'ol', 'ul', 'li', 'a', 'strong', 'em', 'del'
|
'p', 'ol', 'ul', 'li', 'a', 'strong', 'em', 'del', 'br'
|
||||||
],
|
],
|
||||||
disallowedTagsMode: 'discard',
|
disallowedTagsMode: 'discard',
|
||||||
allowedAttributes: {
|
allowedAttributes: {
|
||||||
|
Loading…
Reference in New Issue
Block a user