How to sanitize HTML code to prevent XSS attacks in Java or JSP?

后端 未结 3 815
花落未央
花落未央 2020-12-01 08:17

I\'m writing a servlet-based application in which I need to provide a messaging system. I\'m in a rush, so I choose CKEditor to provide editing capabilities, and I currently

3条回答
  •  天命终不由人
    2020-12-01 09:09

    If none of the ready-made options seem like enough, there is an excellent series of articles on XSS and attack prevention at Google Code. It should provide plenty of information to work with, if you end up going down that path.

提交回复
热议问题