Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code between <script></script> transformed #26

Open
sandoche opened this issue Jun 13, 2019 · 0 comments
Open

Code between <script></script> transformed #26

sandoche opened this issue Jun 13, 2019 · 0 comments

Comments

@sandoche
Copy link

Hi,

In my README.md I have the google analytics code:

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XX-XX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-XX-XX');
</script>

After compiling with fiddly I get this instead:

<!-- Global site tag (gtag.js) - Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=UA-XX-XX"></script>
<script>
  window.dataLayer = window.dataLayer || <a href="undefined"></a>;
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());<br />  gtag('config', 'UA-XX-XX');
</script>  

The [] has ben changed to <a href="undefined"></a>

What can I do to escape it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant