UNPKG

@lastboy/vue2

Version:

Fork of Vue 2.7.16 with patched CVE-2024-9506 (regex ReDoS vulnerability)

10 lines (8 loc) 184 B
let decoder export default { decode(html: string): string { decoder = decoder || document.createElement('div') decoder.innerHTML = html return decoder.textContent } }