Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this Page

Table of Contents
maxLevel2
excludeAdditional Resources|Related Links|Related Information

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


Paste code macro
HTML.encode($string)


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


Paste code macro
HTML.decode($string)


Example

Expression: HTML.decode('One & Two')

where $string is HTML encoded.

Result: "One & Two"

...