Safe rendering: content escaped by default
All built-in renderers, formatters and tooltips write content as text, so values like '<img onerror>' display literally. Nothing in the default configuration ever writes data into innerHTML. This makes the grid safe with untrusted data, such as user-generated content, without extra setup.
Planned. This page shows the specification from issue #184. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A comments grid seeded with an XSS payload corpus (script tags, event handlers, SVG payloads).
Expected behavior
Every payload renders as literal text. The DOM inspector shows text nodes only. No dialogs or network requests occur.
Planned API surface
formattertooltipcellRendererescapeHtml (utility)Acceptance criteria
- An automated test renders an XSS payload corpus of at least 100 vectors through every built-in column type, tooltip and footer with zero script execution. (pending)
- The grid works with Trusted Types enforced ('require-trusted-types-for script'). (pending)
- Formatter return values are inserted as text. (pending)
- A lint rule or dev warning flags framework templates that use raw HTML bindings in docs examples. (pending)