Code Monkey home page Code Monkey logo

Comments (3)

jordanwallwork avatar jordanwallwork commented on June 24, 2024

This is the correct output. Per user @FlorianRappl on the relevant AngleSharp issue AngleSharp/AngleSharp#348:

This is by specification, see the string escaping that needs to be applied on attribute values..

from premailer.net.

CaptainStack avatar CaptainStack commented on June 24, 2024

This is the correct output. Per user @FlorianRappl on the relevant AngleSharp issue AngleSharp/AngleSharp#348:

This is by specification, see the string escaping that needs to be applied on attribute values..

@jordanwallwork - this is not the correct output even if the HTML standard says attribute values need to be string escaped. PreMailer.Net is a CSS inliner, it is not an HTML validator or sanitizer. This side effect is completely blocking some of my work and I need a workaround. I don't have any control over the URLs in the HTML, but I am not allowed to change them. I need to inline the CSS without changing the URLs.

Additionally, it encodes these values even when they are not an HTML attribute value, which is definitely wrong.

<p>Ben & Jerry's</p>

This is not required to be encoded by the HTML specification but PreMailer.Net encodes it anyway. Result:

<p>Ben &amp; Jerry's</p>

from premailer.net.

mirkomaty avatar mirkomaty commented on June 24, 2024

EDIT: Sorry, I haven't seen this solution:
#198

So, I'm going to try to write a formatter.
Maybe somebody might find this comment helpful.
-mm

from premailer.net.

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.