explorador - 9:19 pm on Aug 15, 2013 (gmt 0)
Nice. My script is on full work now, will only add a few improvements. As for the split/regex I don't fully target the < or > chars because I decided to keep them in the email responses, it helps a lot to read the last message alone with the previous response.
> previous one
I even added reply with last message, so I'm able of answering the last email from one page alone including a quote of the previous message to make it easy for the reader on the other side.
As for the last loop/then one regex try well yes I got it and working cleaning strings off html tags in just one regex, but so far I don't fully understand why that worked on tests but not on the file, even removing line brakes, returns, etc first. I use that one regex to clean pasted html content on one CMS I have (it helps a lot to copy paste my own content when I'm doing some special tasks). Anyway I'm getting now full clean text with no extra spaces or line brakes.