Why don't use this ? el.querySelectorAll("*").forEach(el => el.remove())
el.querySelectorAll("*").forEach(el => el.remove())
Why don't use this ?
el.querySelectorAll("*").forEach(el => el.remove())