PHP Classes

Input Filter: strip unwanted tags , words in post method

Recommend this page to a friend!
  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 - 7 years 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.

+2

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 6845 - 7 years 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
: 
: 
For more information send a message to info at phpclasses dot org.