Lasso Soft Inc. > Home

[Encode_Smart]

[Encode_Smart] takes a single argument which is a string to be encoded. It encodes any HTML illegal characters in the string into HTML entities. It leaves reserved characters such as <, >, ", or & untouched.

This tag can be used on text which contains HTML markup. It ensures that high-ASCII characters are encoded as HTML entities so they will display in Web browsers on any platform while allowing HTML markup to pass through unaltered.

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

  • Syntax
  • Parameters
[Encode_Smart: 'Encoding Value']
Required Parameters
Encoding Value The specified value will have -EncodeSmart encoding applied.
Examples

To encode text using smart HTML encoding:

Use the [Encode_Smart] tag. The following example encodes a string using smart HTML encoding to demonstrate what characters are replaced by HTML entitites. The characters required for HTML markup are not encoded, but the high-ASCII character is.

[Encode_Smart: '<b>mañana</b>']
Result:
<b>mañana</b>
Tag Link [Encode_Smart] Category Encoding
Type Substitution Data Source Any
Support Preferred Version 2.5
Output Type String Security None
Implementation LCAPI Sets Lasso 7.0, Lasso 6.0, Lasso 5.0,LDML3x,LDML25

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft