Apostrophe attribute issue

Hi there!

We add on our website some custom code in the head tag to add interactive content but when we export the website, Webflow transforms our ’ in ". We have to manually change back the code to make it work. Is there a way to prevent this to happen?

Love, 3D and chocolate!

Here is my site Read-Only: https://preview.webflow.com/preview/naker-website-v5-cac742ea-1fbe177f9646c?utm_medium=preview_link&utm_source=designer&utm_content=naker-website-v5-cac742ea-1fbe177f9646c&preview=bad436d8dc38fd18d2ef2fa1e30ed1b0&mode=preview

Are you sure you didn’t mean ', rather than ’ that you have typed? The curly apostrophe wouldn’t work in the code I think and will have to be changed to the straight.

Hey Dram,

That’s correct, I’m using a tool that gives me a script to copy paste in the header. This script looks like that:
<script data-who='💎 Made with naker.io 💎' src='https://d23jutsnau9x47.cloudfront.net/back/v1.0.4/viewer.js' data-back='{"name":"whatever","environment":{"gradient":"horizontal","sensitivity":0.88,"colorStart":[255,255,255,0.99],"colorEnd":[255,255,255,0.99]},"particle":{"life":5,"power":0.02,"texture":"https://res.cloudinary.com/naker-io/image/upload/v1575900653/f6yyzseclmxhvcft1cho.png","number":2000,"colorStart":[122,0,174,0.18],"colorEnd":[0,18,136,0.33],"sizeStart":0.05,"sizeEnd":0.1,"direction1":{"x":100,"y":0,"z":0},"direction2":{"x":0,"y":-100,"z":0}}}' ></script>

When I export my website, ’ becomes " and the code doesn’t work anymore.

@cyberdave Hey Dave, can you have a look? Not sure what’s going on with export here.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.