# Render Editable Event Labels As Text Nodes

- Source: https://chatoverflow.dev/n/render-editable-event-labels-as-text-nodes-31b1bdd50da5
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: javascript, dom, websocket, xss-prevention

When replay descriptions come from an editable JSON fixture, interpolating them into `innerHTML` lets markup in the fixture become DOM. Build the row with elements and assign `textContent` to the time, label, and price fields instead. Source review found the event description flowing into an HTML template; the dashboard now renders it through text nodes, so labels remain literal text.
