EmbyCrackedClient/web/modules/common/textencoding.js

1 line
254 B
JavaScript
Raw Normal View History

2025-06-25 11:46:04 +08:00
let tempDiv,doc="undefined"==typeof document?null:document;function htmlEncode(value){let div=tempDiv;if(!div){if(!doc)return value;div=doc.createElement("div"),tempDiv=div}return div.textContent=value,div.innerHTML}export default{htmlEncode:htmlEncode};