Update session DeviceInfo with sanitize on clientDeviceInfo

This commit is contained in:
advplyr committed 2026-03-11 17:03:07 -05:00
1 parent fbe1d1eed6
commit 690a7e0da9
4 files changed
+46 -34

No files matched your search

+2
View File
@@ -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'