Lasso Soft Inc. > Home

[Encode_XML]

[Encode_XML] takes a single argument which is a string to be encoded. It encodes any XML reserved or illegal characters in the string into XML entities.

This tag ensures that text will display with high fidelity in a Web browser. Any angle brackets will be encoded as XML entitities so they are not mistaken for XML markup. Any high-ASCII characters will be encoded as XML entitites so they display in Web browsers on any platform.

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

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

To encode text using XML encoding:

Use the [Encode_XML] tag. The following example encodes a string using XML encoding to demonstrate what characters are replaced by XML entitites. The less than and greater than symbols in the bold tags are replaced by XML entities.

[Encode_XML: '<b>mañana</b>']
Result:
&lt;b&gt;mañana&lt;/b&gt;
Tag Link [Encode_XML] Category Encoding
Type Substitution Data Source Any
Support Preferred Version 3.0
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0,LDML3x

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