How to correctly display HTML markup content from database to browser in Struts 2?
1 answer
You need to set the escapeHtml
tag attribute <s:property/>
to false
, because for security reasons it true
is the default:
<s:property value="myVar" escapeHtml="false" />
More details in the docs .
+2
source to share