Tools for SVG sanitization.
- Copyright:
- 2010 Alexis Deveria, 2010 Jeff Schiller
- License:
- MIT
- Source:
Methods
(static) sanitizeSvg(node) → {void}
Sanitizes the input node and its children. It only keeps what is allowed from our whitelist defined above.
Parameters:
Name | Type | Description |
---|---|---|
node |
Text | Element | The DOM element to be checked (we'll also check its children) or text node to be cleaned up |
- Source:
Returns:
- Type
- void