I'm currently struggling with the following problem. In my Spring web application I have different content types (e.g. text, images or code). Depending on the content type I need to display it in different ways:
text: <p>some text</p>
image: <img src="path/to/my.img" />
code <pre>some code</pre>
The HTML tags should be concatened to the actual content. The problem is, if I simply build the output text in my Java class, the HTML tags won't be resolved in my view, so that <p>some text</p> will be displayed.
Is it somehow possible that the HTML tags can be resolved in my view?