Coder Social home page Coder Social logo

webflow-sass's People

Contributors

parasshah195 avatar

Stargazers

 avatar

Watchers

 avatar

webflow-sass's Issues

Certain ASCII characters gets sanitized/encoded on the published site

Problem

Characters like quotation marks (', "), angle brackets (>) are encoded to HTML entities by Webflow on the published site. This is in-line with the behavior of Webflow sanitizing all text content.

The app sets styles as text content in DOM elements.

This causes the child selector and other use of ASCII characters render fine in the designer live preview, but makes those CSS rules invalid on the published site, giving a mismatched and unexpected behavior between design and production.

Solution

This is not in my control, since there doesn't seem any other way to set/apply DOM element content in Webflow by apps as of now.

Have reached out to the Webflow support team to discuss this issue. No response from them on this as of now (since the last 3 weeks).

One solution from their end would be to detect use of such special tags (like style, script, and others) on the DOM element and not encode output of those. That would be the most ideal and backwards-compatible since it wasn't require any structural or output level changes to any existing use of the Sass template and style elements.

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.