HtmlText: String
The HtmlText property contains non-formatted value of title text in the HTML markup language.
Use JSON or the setHtmlText method to set the property value and the getHtmlText method to get the property value.
To execute the example, the HTML page must contain the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). To show the title, click the Title button on the Home tab. Get non-formatted and formatted title text values in the HTML markup language:
// Get workspace Data = expressBox.getDataView(); // Get title Title = Data.getTitleView(); // Get non-formatted title text value in the HTML markup language console.log("Non-formatted title text value: " + Title.getHtmlText()); // -> "<span style="font-weight: bold;font-size: 12pt;">Report name &[Name]</span>" // Get formatted title text value in the HTML markup language console.log("Formatted title text value: " + Title.getHtmlTitle()); // -> "<span style="font-weight: bold;font-size: 12pt;">Report name Table</span>"
As a result, the console displays non-formatted and formatted title text values in the HTML markup language.
See also: