Conformance Examples 0.1.0 — Transforms: transform-escape¶
escape-all-metacharacters¶
Encodes &, <, >, double-quote, and single-quote as HTML entities. Uses {{{ }}} so the renderer does not re-escape the transform's output.
Template
Context
Output
escape-double-escapes-existing-entity¶
Unlike escape_once, escape re-encodes the ampersand of an existing entity.
Template
Context
Output
escape-no-special-characters¶
Plain text without metacharacters is returned unchanged.
Template
Context
Output
Source fixture: transforms/transform-escape.json