Update session DeviceInfo with sanitize on clientDeviceInfo

This commit is contained in:
advplyr 2026-03-11 17:03:07 -05:00
parent fbe1d1eed6
commit 690a7e0da9
4 changed files with 46 additions and 34 deletions

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'