acer240 Posted February 18, 2010 Posted February 18, 2010 How can i stop users being able to use <meta> tags in forums ,quotes etc ? is there a simple line i can add to the pages to disable it ? many thanks Quote
a_bertrand Posted February 18, 2010 Posted February 18, 2010 You need to filter what your users write. I would not allow HTML in general. Quote
acer240 Posted February 18, 2010 Author Posted February 18, 2010 html how would i disable all html in site ? Quote
Lithium Posted February 18, 2010 Posted February 18, 2010 Start from here... http://php.net/manual/en/function.strip-tags.php Quote
Magictallguy Posted February 18, 2010 Posted February 18, 2010 strip_tags(), htmlspecialchars()/htmlentities(), and str_replace() can help you here Quote
Jordan Palmer Posted February 18, 2010 Posted February 18, 2010 Well this is ''stupid'' but I have used str_replace(); some places too ;] Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.