When adding a DEFINE field with HTML content, the field shows the escaped (unparsed) HTML tags


Diagnostics

Product: InfoAssist
Release: 8205
Primary OS: All Platforms
Solution Date:

Problem

When adding a DEFINE field with HTML content, the field shows the escaped (unparsed) HTML tags.

For example, if you add the following DEFINE field:

DEFINE FILE CAR
GOBACK/A80 = '<a href="javascript:window.history.back();">Go Back</a>' ;
END

The HTML code will be saved as-is.

Solution

This issue occurs because the following directive is included in the procedure:

SET HTMLENCODE=ON

To address this, remove the directive (-*SET HTMLENCODE=ON) or set the HTML Encode to off (SET HTMLENCODE=OFF).

In InfoAssist, these can be managed in the Procedure Settings dialog accessible from the fast icon bar at the top.