I am looking for a way to remove all <table*> <tr*> <td*> </td> </tr> </table> tags from a string.
Where the * is a wildcard for anything else.
What are the regexs for this, so I can use str_replace?
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.
Just use
strip_tags()here: http://php.net/manual/en/function.strip-tags.phpAs long as there are not too many tags that need to be allowed through the filter, it is the easiest way.