XSS filtering function in PHP

前端 未结 10 1637
轮回少年
轮回少年 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:33

    All above methods don't allow to preserve some tags like ,

    etc. There is an ultimate solution http://sourceforge.net/projects/kses/ Drupal uses it

    提交回复
    热议问题