Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

IsPCDATARequired Function

Overview

The IsPCDATARequired function tests if a string contains characters that would require encoding for representation in SGML, HTML, or XML.

Syntax/Parameters

Syntax

boolean = IsPCDATARequired ( string value );

Parameters

value

A string to test.

Return Value

Returns a boolean value as TRUE if value requires PCDATA encoding or FALSE if it does not.

Remarks

PCDATA (Parsed Character Data) encoding ensures text between SGML, HTML, and XML start and end tags is properly parsed. The IsPCDATARequired function checks the ‘&’, ‘<’, and ‘>’ characters, as well as control characters and characters above 0x7F as requiring encoding. Tabs, newlines and returns are excluded and assumed to be simple white space.

Related Functions

Platform Support

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

Legato IDE, Legato Basic