mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-05 22:46:27 +01:00
Update session DeviceInfo with sanitize on clientDeviceInfo
This commit is contained in:
1 parent
fbe1d1eed6
commit
690a7e0da9
4 files changed
+46
-34
No files matched your search
@@ -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