Strip quoted text from html emails

The context

For a project I’m currently working on, I needed to build such a timeline:

MicroFactures client messages

The idea: we get the user emails (sent and received) and we put them in a pretty timeline (the mail pipe to my script will perhaps be discussed later, in another post…).

The problem, when we show emails that are replies of another message, they contain the quoted text which spoil the timeline. Continue reading “Strip quoted text from html emails” »