Code Monkey home page Code Monkey logo

planer's People

Contributors

colincollerlever avatar distracteddev avatar dwinrick-lever avatar eshenfield avatar justinpinili avatar jylauril avatar l8on avatar mattngan avatar mo-packages avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

planer's Issues

Security concern

Hello ๐Ÿ‘‹

I run a security community that finds and fixes vulnerabilities in OSS. A researcher (@Ilaygoldman) has found a potential issue, which I would be eager to share with you.

Could you add a SECURITY.md file with an e-mail address for me to send further details to? GitHub recommends a security policy to ensure issues are responsibly disclosed, and it would help direct researchers in the future.

Looking forward to hearing from you ๐Ÿ‘

(cc @huntr-helper)

Not all reply markup removed from emails generated by Gmail

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 &lt;<br/><a href="mailto:[email protected]">[email protected]</a>&gt; wrote:</p><p>&gt; Original message<br/>&gt;</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 &lt;<br> <a href="mailto:[email protected]"> [email protected] </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!

Does not clean up Zoho Mail web client's reply

When using Zoho Mail (web client) Planer does not omit part of quoted text, which usualy says "wrote ----".

Here's the result HTML. It seems that the content is easy to catch with zmail_extra CSS class.

<html><body><div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;color:#00000;">  <div>  Replying to a message :)<br>  </div> <div>  <br>This may be fun  </div> <div>  <br>  </div> <div class="zmail_extra">  <div id="Zm-_Id_-Sgn1">  <div>  <br>  </div> <div> wrote ----<br>  </div>  </div> <div>  <br>  </div>  </div>  </div> <br></body></html>

planer breaks on html email with css link and jsdom 12

test case

const Planer = require('planer');
const JSdom = require('jsdom');

const document = new JSdom.JSDOM().window.document;
Planer.extractFrom('<html><head><link rel="stylesheet" href="https://example.com/app.min.css"></head><body>hello world</body></html>', 'text/html', document);

live test case: https://runkit.com/adrivanhoudt/planer-jsdom-fetch-error

I think it has something to do with jsdom's new resource loader in v12.
Not sure why it is trying to load the resource though since it states it doesn't do that by default but maybe planer's use of innerHTML = body breaks it?

HTML extraction out of outlook

Hi,
Im trying to use the library to extract html from outlook client, and it seems not be working.
It does wrap the content with and tags, but not really extract the reply.

Do you support client outlook?

Thank you in very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.