HTML - Encode and Decode Functions
This page is no longer maintained (May 13, 2026). For the most current information, go to https://docs.snaplogic.com/design-integrations/html-functions.html
In this Page
The HTML encode and decode functions can be used to encode/decode strings into/from HTML entities.
encode
Description | Encodes plain text into HTML by converting characters into HTML entities. |
|---|---|
Syntax | Better Code Block |
Example | Expression: HTML.encode('One & Two') where $string is plain text. Result: "One & Two" |
decode
Description | Decodes HTML into plain text by converting HTML entities into characters. |
|---|---|
Syntax | Better Code Block |
Example | Expression: HTML.decode('One & Two') where $string is HTML encoded. Result: "One & Two" |