special character in xml Datasource

0

Hello, 

I have a specical character in my xml Datasource:

<xmltag>&lt;test</xmltag>

The Text should read "<test" in my Pdf. 

This code in the Text Field jasper Studio does not work: 

$F{xmltag}.contains( "&lt;" )?$F{xmltag}.replace( "&lt;","<" ):$F{xmltag}

Can you please help me?

Thank you

 

 
ye_l's picture
5
Joined: Mar 12 2019 - 1:11am
Last seen: 2 days 19 hours ago

ok, I found out. It's very easy. All you have to do is set the Attribute Markup text value to "html"

ye_l - 3 days 22 hours ago

0 Answers:

No answers yet
Feedback
randomness