String EncodeAmpersand and DecodeAmpersand Example
The String EncodeAmpersand and DecodeAmpersand perform a single encoding and decoding of the ampersand character.
Smartsite SXML | Copy Code |
---|---|
<!-- 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 | Copy Code |
---|---|
<!-- please note that the result on the client is always decoded one more time--> & => & & => & & => & & => & |