import { createElement } from 'Common/Globals'; import { forEachObjectEntry, pInt } from 'Common/Utils'; import { SettingsUserStore } from 'Stores/User/Settings'; const tmpl = createElement('template'), htmlre = /[&<>"']/g, httpre = /^(https?:)?\/\//i, htmlmap = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }, disallowedTags = [ 'svg','script','title','link','base','meta', 'input','output','select','button','textarea', 'bgsound','keygen','source','object','embed','applet','iframe','frame','frameset','video','audio','area','map' // not supported by