I have some text for ex: This is <b>an</b> example <b>text</b>.
How would I remove all the text that is within bold tags, so it should output this:
This is example.
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.
Use preg_replace()
If you would like to remove a simple tag along with the text inside it:
Output:
This is example
And whit a regular expression (class, id), spacing errors and antislashe:
Output:
This is example