Lasso Soft Inc. > Home

[ Encode_HTML ]

Method

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

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

  • Syntax
Encode_HTML('Encoding Value')
Examples
  • Beginner

To encode text using HTML encoding:

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

Code

Encode_HTML('<b>maƱana</b>')

Result

&lt;b&gt;ma&#241;ana&lt;/b&gt;

Recent Comments

">

Posted on: 19 August 2019

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