-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Hey! Cool package! I was assessing solutions for the very nasty problem of removing reply text from emails, and after researching many of the same paths others have (regexes++, a "reply above this line" indicator, etc) I stumbled across your article on Medium. Just wanted to say I love your minimalist spirit and thank you for your open source contributions.
I tested your package briefly, and thought I'd let you know that it fails to completely remove reply markup from emails sent by Gmail's web client.
HTML as sent by Gmail:
<p>This is a reply</p><p>On Thu, Dec 7, 2017 at 4:42 PM, f f <<br/><a href="mailto:recip@inbound.mydomain.us">recip@inbound.mydomain.us</a>> wrote:</p><p>> Original message<br/>></p>
HTML returned by planer.extractFromHtml():
<html><body><p> This is a reply </p> <p> On Thu, Dec 7, 2017 at 4:42 PM, f f <<br> <a href="mailto:recip@inbound.mydomain.us"> recip@inbound.mydomain.us </a></p><p><br></p></body></html>
Latest version of planer, node environment, jsdom as DOM implementation, where my call to extractFromHtml looks like:
planer.extractFromHtml(emailHtml, new JSDOM('').window.document)
Thought you might like to know. Cheers!