XSS filtering function in PHP

前端 未结 10 1670
轮回少年
轮回少年 2020-11-27 11:18

Does anyone know of a good function out there for filtering generic input from forms? Zend_Filter_input seems to require prior knowledge of the contents of the input and I\'

10条回答
  •  天涯浪人
    2020-11-27 11:41

    the best and the secure way is to use HTML Purifier. Follow this link for some hints on using it with Zend Framework.

    HTML Purifier with Zend Framework

提交回复
热议问题