Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.6a

Application v 6.0a

  

 

Chapter FiveGeneral Functions (continued)

IsHTML Function

Overview

The IsHTML function tests if a string might contain common HTML tags, such as P, DIV, TABLE, and HTML.

Syntax/Parameters

Syntax

boolean = IsHTML ( string value );

Parameters

value

A string to test.

Return Value

Returns TRUE if value contains certain HTML tags (see the Remarks section) or FALSE if those HTML tags were not found.

Remarks

The function only scans first 50 items (space delimited). If the string does not contain any common HTML tags in that area, the function will return FALSE. The following HTML tags are tested:

<!doctype>
<abbr> <acronym>
<address> <b>
<big> <blockquote>
<body> <br>
<center> <cite>
<code> <dd>
<dfn> <div>
<dl> <dt>
<em> <font>
<h1> <h2> <h3> <h4> <h5> <h6> <head>
<hr> <html>
<i> <kbd>
<li> <ol>
<p> <pre>
<q> <small>
<span> <strike>
<strong> <sub>
<super> <table>
<td> <th>
<tr> <tt>
<u> <ul>
<var>   

 

The IsHTML function does not test if the HTML is well formed or without errors.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic

Page revised 2025-03-13