Giter Site home page Giter Site logo

Comments (2)

obukhov-sergey avatar obukhov-sergey commented on July 28, 2024 1

@fiatjaf this one should be fixed. At least for Gmail. The edge case @jeremyschlatter found aside - not sure how we could fight this one. It will be solved when we stop looking for html tags completely and improve on html to text, strip text quotations, remove corresponding html tags algo.

So far I just made a change not to handle <blockquote> as an indicator of quotations if it has gmail_quote. Since Gmail uses divs with gmail_quote class to indicate quotations.

from talon.

fiatjaf avatar fiatjaf commented on July 28, 2024

It's not only that, when you insert a quote yourself, using the Gmail formatting tools (suppose you're quoting Shakespeare, for example), you'll get something like

 <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  <div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
   My name is William Shakespeare.
   <br/>
  </div>
 </blockquote>

and it will be stripped out, even though it wasn't part of the previous email and is standing there right in the middle of your message.

But I also don't have a suggestion on what should be done.

from talon.

Related Issues (20)

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.