I just tried to use wp_filter_kses() to strip HTML out of some data in a plugins' form, but it seems to be stripping out most of the HTML I need :(
I need it to preferably allow the insertion of <div>, <li>, <a> and <span> tags, but only the <a> tags seem to be allowed via wp_filter_kses().
This is only for site admins to be using, so there's no issue with people borking the layout or anything like that. I just need to make sure there's no security issues to contend with so I'm guessing I just need to strip out the <script> tags. I can find plenty of information about best practices for this in PHP in general, but nothing for WordPress specifically. Any ideas on the best approach to filtering this in WordPress in a secure way?
Thanks :)


LinkBack URL
About LinkBacks
Reply With Quote