mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-04-04 14:19:43 +00:00
Update session DeviceInfo with sanitize on clientDeviceInfo
This commit is contained in:
parent
fbe1d1eed6
commit
690a7e0da9
4 changed files with 46 additions and 34 deletions
|
|
@ -27,6 +27,8 @@ function sanitize(html) {
|
|||
module.exports.sanitize = sanitize
|
||||
|
||||
function stripAllTags(html, shouldDecodeEntities = true) {
|
||||
if (typeof html !== 'string') return ''
|
||||
|
||||
const sanitizerOptions = {
|
||||
allowedTags: [],
|
||||
disallowedTagsMode: 'discard'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue