Example:
<div>foo</div>
<p>bar</p>
Unwrapped text
What i want:
<div>foo</div>
<p>bar</p>
<span>Unwrapped text</span>
How to achieve this without relying on new lines?
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.
I would not use regular expressions for html.
You can do it with phpQuery
Didn’t try it though.