mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-04 03:51:53 +02:00
Update session DeviceInfo with sanitize on clientDeviceInfo
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user