Sanitize KaTeX-generated HTML output.
Lighter than sanitizeHTML — preserves SVG elements and inline styles required for correct math rendering while removing the three injection vectors:
Sanitize KaTeX-generated HTML output.
Lighter than sanitizeHTML — preserves SVG elements and inline styles required for correct math rendering while removing the three injection vectors: