I've successfully stripped a html file of everything like tags and scripts using a php script so as it conforms to TEXT standards for emailing.


Blank lins that exist in the code are visible in the text version even after I perform a trim

How do I remove these blank lines so as my content is not as spaced out.