How to add a HTML5 tag to AntiSamy policy file?

我与影子孤独终老i 提交于 2019-12-23 23:42:21

问题


My AntiSamy file does not seem to like the HTML5 <figure> tag. Its allowing the tag itself to exist, but nothing contained inside it.

So this:

<figure> <img src="image/path"/> </figure>

Is becoming this:

<figure> </figure> <img src="image/path"/>

How can I stop the antisamy from stripping out the content of the <figure> tag? I want it to allow the <figure> tag and all its attributes and content.

来源:https://stackoverflow.com/questions/32427087/how-to-add-a-html5-tag-to-antisamy-policy-file

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