Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 412
damo_inc Avatar asked Oct 12 '25 21:10

damo_inc


2 Answers

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>

like image 181
Rogel Garcia Avatar answered Oct 14 '25 11:10

Rogel Garcia


If you are using iReport for designing the reports, checkout "markup" property in the properties window, for that particular field.

like image 37
bchetty Avatar answered Oct 14 '25 12:10

bchetty



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!