Articles in this section

htmlDecode helper

Converts encoded entities (such as <, &, and ") into their readable characters. Use it when data sources return encoded text and you need to display or process the plain form. This helper requires triple curly braces {{{...}}}.

Usage

{{{htmlDecode value}}}
  • value (required): encoded string

Examples

  1. Decode HTML entities

    {{{htmlDecode record.aiOutput}}}
    

    Input:

    {
      "record": {
        "aiOutput": "<p>Hello & welcome</p>"
      }
    }
    

    Output:

    <p>Hello & welcome</p>
    

Tip

  • Use this helper when consuming API responses or stored text that contain encoded entities.

  • Decoding restores special characters like &lt; &amp; &gt; to their normal form <, >, &.

  • Combine with sanitize if you need to both decode and strip tags, keeping only plain text.