Xml with cdata html sections using jaxb to convert to java objects ... is it possible to display html?

I have an xml document that I used JAXB to end up displaying struts2 on a webpage.

This high-level document contains CDATA sections, which are paragraphs that contain some HTML. The returned java object is a list of paragraph objects whose text turns into lines.

When I display them in the JSP, I get the paragraphs that are displayed on the screen, and they contain HTML but are not displayed.

I found the answers here about removing HTML from java strings, but nothing like that. I also do not control the XML document that I use only.

+3
source share

Source: https://habr.com/ru/post/1787758/


All Articles