The grid (rendering) ยท console.warn
Column '{colId}' template uses {{{{expr}}}} (unescaped output), which requires allowUnsafeTemplates: true at grid level. The value will be escaped instead. Turning escaping off must be a deliberate, auditable choice.
Printed by The grid (rendering), prefixed [lattice], since 1.0.1.
Warnings reference › tpl-unsafe:*
- Identifier
tpl-unsafe:*- Raised by
- The grid (rendering)
- Since
- 1.0.1
What happened
A template asked for unescaped output with the triple-brace form, and the grid was not configured to allow it. The value is escaped instead, so any markup in the data appears as text. The grid refuses the escape hatch rather than refusing to render, because taking an application down over a styling decision would be worse.
The fix
Set allowUnsafeTemplates: true at grid level if the content is genuinely trusted - it is a grid-wide, auditable decision - or return an element from a function renderer, which needs no flag.
The smallest fix
createGrid(el, { allowUnsafeTemplates: true, columns });
Reference
Covered in full at the API reference.