Problem with decoding < >

velocity
java
html

#1

Problem with decoding

<
>

I have method in Java that generate html code for example

<strong>ID</strong>

I use velocity to get variables and in my HTML i get output <strong>ID<strong> . Text is not strong, but I have result with tags. How to resolve this?


#2

Have a read about HtmlFragment in Advanced HTML encoding. Does that help?