Disable Struts converting HTML tags into entities

守給你的承諾、 提交于 2020-01-13 17:14:29

问题


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" />


来源:https://stackoverflow.com/questions/716922/disable-struts-converting-html-tags-into-entities

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!