i am disabling HTML tags and use this code $title=str_replace("<p>", "", $title); Code (markup): but for each tag i am defining in new line like $job_title=str_replace("<p>", "", $job_title); $job_title=str_replace("</p>", "", $job_title); $job_title=str_replace("<br>", "", $job_title); $job_title=str_replace("<a>", "", $job_title); Code (markup): is there a way to get resolved it in one line so using it all htmls tags will be disabled $job_title=str_replace("ONE STRING TO ALL HTML CODES", "", $job_title); Code (markup): in this way ???
$job_title = strip_tags($job_title); Code (php): Alternately, htmlentities() will convert all special characters to entities, allowing display of tags but not allowing an XSS vulnerability.