LassoScript Utility
Basics Browse Detail

[Encode_Break]

Tag Link [Encode_Break] Category Encoding
Type Substitution Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0
Lasso 3 Equivalent [Encode_Breaks]

Description

[Encode_Break] takes a single argument which is a string to be encoded. It encodes any return or new line characters in the string into HTML break tags <br>.

Note: This tag performs the same encoding as the -EncodeBreak keyword.

Syntax

[Encode_Break: 'Encoding Value']

Parameters

Required Parameters
Encoding Value The specified value will have -EncodeBreak encoding applied.

Examples

To encode text using break HTML encoding:

Use the [Encode_Break] tag. The following example encodes a string using break HTML encoding to demonstrate what characters are replaced by HTML entitites. The only character which is changed in the output is the return character that is replaced by an HTML <br> tag.

[Encode_Break: 'one\rtwo']

one<br>two