PHP Classes
elePHPant
Icontem

Input Filter: strip unwanted tags , words in post method

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All requests RSS feed  >  Input Filter  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Input Filter

Edit

Picture of santhosh by santhosh - 8 months ago (2015-06-02)

strip unwanted tags , words in post method

This request is clear and relevant.
This request is not clear or is not relevant.

+1

prevent xss attacks in php code. remove html tags , bad words while posting values using form

Ask clarification

1 Recommendation

PHP Input Filter: Filter out unwanted PHP / Javascript / HTML tags.

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Dave Smith by Dave Smith Reputation 5955 - 8 months ago (2015-06-02) Comment

This is the class that I have always used, very easy to configure for what tags and properties to allow and it strips the rest. It does most of the heavy lifting you are looking for including xss filter, except it does not have a bad word filter. I was not able to locate any that combined stripping tags, xss prevention and bad word filter, so you would have to use an additional bad word filter class, there are plenty on here to choose from.


Recommend package
: 
: