Search code examples
javajasper-reportshtml-entities

How to decode html entities in JasperReports


I have some reports written in JasperReports and they display html entities literally, for example, bullet point • is shown using html entity textual representation: #8226;.

Do you know any way around it?


Solution

  • In the textField set the markup attribute as html.

    this is how to add in 5.6 version of iReport studio

    <textField ........> <reportElement ........./> <textElement markup="html"/> <textFieldExpression><![CDATA[..........]]></textFieldExpression> </textField>