Skip to end of banner
Go to start of banner

HTML - Encode and Decode Functions

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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
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
Example

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

where $string is HTML encoded.

Result: "One & Two"

  • No labels