AgnosticWipe is a utility function that safely removes all child nodes of a given DOM element, avoiding the use of innerHTML to clear content. It includes configurable debugging capabilities (log and warn), similar to other Agnostic modules, to assist with troubleshooting during development.
javascript security dom vanilla-javascript xss clean vanilla-js dom-manipulation removechild wipe innerhtml firstchild agnostic-wipe agnosticwipe targetselector
- Updated
Oct 10, 2024 - JavaScript