Tag Link | [Encode_Smart] | Category | Encoding |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 2.5 |
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.x, Lasso 2.5 |
[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
Note: This tag performs the same encoding as the
[Encode_Smart: 'Encoding Value']
Required Parameters | |
---|---|
Encoding Value | The specified value will have |
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
[Encode_Smart: '<b>mañana</b>']
<b>mañana</b>