开发者

Scripts/tags getting removed in text when using antisamy.jar/xml

I am using antisamy.xml and antisamy.jar for preventing XSS. So when i enter a script tag in the text box it truncates it and the other text apart from the tag is stored in the database.

I want to store the script/tag in the database too, but without applying the script/tag.

For example, If i enter alert(); in the text box on the jsp page. I want the whole thing saved in db but i should not get the alert on ui.开发者_Python百科

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜