Conformance Examples 0.1.0 — Render: html-escaping¶
html-escape-ampersand¶
{{ }} escapes & to & (covers the '&' branch of escapeHTML).
Template
Context
Output
html-escape-less-than¶
{{ }} escapes < to < (covers the '<' branch of escapeHTML).
Template
Context
Output
html-escape-greater-than¶
{{ }} escapes > to > (covers the '>' branch of escapeHTML).
Template
Context
Output
html-escape-double-quote¶
{{ }} escapes " to " (covers the '"' branch of escapeHTML).
Template
Context
Output
html-escape-single-quote¶
{{ }} escapes ' to ' (covers the '\'' branch of escapeHTML).
Template
Context
Output
html-escape-plain-chars-unchanged¶
Characters that are not HTML-special pass through unchanged (covers the else branch of escapeHTML).
Template
Context
Output
html-escape-empty-string¶
An empty string value renders as empty, exercising the isEmpty() fast-path in escapeHTML.
Template
Context
Output
unescaped-interpolation-preserves-html-chars¶
{{{ }}} emits HTML-special characters verbatim; escapeHTML is not applied to UnescapedInterpolation segments.
Template
Context
Output
Source fixture: render/html-escaping.json