If I have a Struts 2 tag as below
<s:optiontransferselect
leftTitle="<strong>All system groups</strong>">
</s:optiontransferselect>
The resulted outcome should be All system groups, but it appears with strong tags with escapeHTML, I tried setting struts.ui.escapeHtmlBody to false but doesn't work.
The
struts.ui.escapeHtmlBodysetting allows only switch escape option in the body of the tag. Such as if you use nested tags and allows to escape all the tags used in the body of the tag. It doesn't allow to turn of escaping values of the Struts tags attributes.The content of the Struts tags is generated using Freemarker. The latest version of Struts use its feature for auto-escape html output which is enabled by default in Freemarker.
Now you can trick a Freemarker to disable auto-escape for the single value
Another option is to use custom template to customize the html output using a custom Freemarker template where you can turn off auto-escape. More information about it you can find in Themes and templates.