xml_escape

Signature
x | xml_escape

Drops the characters XML forbids, then escapes & < > " ', tab, newline and CR (&#34; &#39; &#x9; &#xA; &#xD;, Go’s xml.EscapeText) even when the input is safe; the result is safe.

Details#

  • Kind: Filter, implemented by fugo.
  • Available in: every kind of template: layouts, partials, shortcodes and render hooks.
  • Output: safe HTML, not escaped.

    Type to search titles, headings and text.