[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.
[Encode_Smart: 'Encoding Value']
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>']
<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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft