String EncodeAmpersand and DecodeAmpersand Example
The String EncodeAmpersand and DecodeAmpersand perform a single encoding and decoding of the ampersand character.
| Smartsite SXML |
|
|---|---|
<!-- please note that the result on the client is always decoded one more time-->
{string.encodeampersand('&')} => &
{string.encodeampersand('&')} => &amp;
{string.decodeampersand('&amp;')} => &
{string.decodeampersand('&')} => &
|
|
| Example Result |
|
|---|---|
<!-- please note that the result on the client is always decoded one more time--> & => & & => & & => & & => & |
|