Jump to content

Alternative to strip_tags


dreamwest

Recommended Posts

I have a search function that allows tags to be searched "<" and ">" etc

 

Ive been using str_replace():

 

$search=$_REQUEST['search'];

$search=str_replace("\'","'",$search);
$search=str_replace("\"",""",$search);

 

Is there a function to make all tags safe for form searches

Link to comment
https://forums.phpfreaks.com/topic/145274-alternative-to-strip_tags/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.