Could someone tell me why this isn’t working please?
$str = preg_replace("<font[^>]*>", '', $str);
CMS is for flash and now the client wants to implement a html website. Need to remove evil inline font tags to show default styling.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if you want to use preg_replace have a look on this function
(in this link you will found a lot of function to do this : http://php.net/manual/en/function.strip-tags.php)
Here is support for stripping content for the reverse strip_tags function: