Displaying data set field values that are stored as HTML text
Sometimes values in a data set field contain HTML text. If you insert such a field in a report, BIRT Report Designer displays the content of the field exactly as it appears in the data source, including the HTML tags. To display the text with its intended formatting, use a text element or a dynamic text element instead of a data element. As described earlier in this chapter, the text element enables you to add static text to the dynamic text, whereas the dynamic text element displays all the HTML tags if you add static text.
To use the text element, select HTML as the text type, then use the VALUE‑OF tag to insert the value of the field, and set the format attribute to HTML, as shown in the following example.
Text that you supply:
Notes: <VALUE-OF format="html">row["CustomerNotes"]</VALUE-OF>
Output:
Notes: The customer wants email confirmation for his orders.