I have XHTML that has empty (blank) lines:
some_tag
empty line
empty line
empty line
some_tag
I wonder how to get rid of them using PHP str_replace. The result should be some_tag some_tag. What are these blank lines anyways?
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.
OK, after that everything will be in one line. Hope that’s ok. Otherwise you’d have to use regular expressions to get rid only of line breaks which are not within tags.