Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

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 DIV
HTML P
HEAD OL
BODY UL
CENTER LI
H1 H2
H3 H4
H5 H6
TABLE TR
TD TH

 

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