var replyParser = require("node-email-reply-parser");
$email = replyParser($emailContent); $email has two primary methods:
getFragments(): returns all the fragments of the email getVisibleText(): returns the text that is considered 'visible' A fragment has the following functions:
getContent(): returns the content of the fragment isSignature(): returns whether or not the fragment is likely a signature isQuoted(): returns whether or not the fragment is likely a quote isHidden(): returns whether or not the text is considered 'hidden' isEmpty(): returns whether or not the fragment has any content Passing true as the second argument to replyParser will have the return value be just the visible text:
$visibleText = replyParser($emailContent, true);
CHECK HERE: https://dadaoffer.com/review/top-10-mobile-under-10000-review-flipkart-december-2017-india/