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 {{{...}}}.
-
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
<&>to their normal form <, >, &. -
Combine with
sanitizeif you need to both decode and strip tags, keeping only plain text.