-->

Disable Struts converting HTML tags into entities

2019-05-14 02:16发布

问题:

Hi I'm using Struts 1.2 and I installed TinyMCE. The problem is that struts is converting all HTML tags into entities. How do I disable or configure this to allow only selected tags?

回答1:

Use the filter parameter (taglib).

<bean:write name="someField" filter="false"/>


回答2:

Thanks, I was looking for this but in Struts 2, and this helped, it's similar:

<s:property value="variable" escape="false" />