Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter ElevenSGML Functions (continued)

11.10.6 HTML Writer Text Stream Functions

Text can be written to the HTML data set as part of block or table cell functions or directly. By default, when text is added, it is automatically encoded for HTML as PCDATA. In other words, escape characters such as & and < > are converted to character entities.

The encoded mode can be changed for all functions using the HTMLSetTextMode function. When writing in PCDATA mode, it is expected that the caller processes the test prior to insertion. This does allow for the direct writing of HTML tags, but those tags will not be processed according to the DTD setup (ie., case and formatting).

Functions:

ANSITextToXML — Converts an ANSI string to XML CDATA.

HTMLAddText — Adds unencoded or encoded text to the stream in open or styled mode with optional style.

HTMLAddLinkedText — Adds an inline text segment as a link.

HTMLGetTextMode — Gets the current text mode as encoded (PCDATA) or unencoded.

HTMLSetTextMode — Sets the text mode as encoded (PCDATA) or unencoded.