strip_tags only catches tags that have a beginning and end tag. With the strings I’m working with it’s causing issues and I need to removed all HTML tags.
Share
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 clean some HTML, I would suggest using a real HTML parser, like HTMLPurifier.
Generally speaking, trying to manipulate HTML with regex tends to end badly…