mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Change element.parentNode.removeChild(element) to element.remove() (#34071)
This commit is contained in:
@@ -108,7 +108,7 @@ export function sanitizeHtml(unsafeHtml, allowList, sanitizeFn) {
|
||||
const elName = el.nodeName.toLowerCase()
|
||||
|
||||
if (!allowlistKeys.includes(elName)) {
|
||||
el.parentNode.removeChild(el)
|
||||
el.remove()
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user