fmal / gulp-inline-source

Inline flagged js & css sources.
MIT License
212 stars 31 forks source link

<script> inside JS code #9

Closed sashasochka closed 9 years ago

sashasochka commented 9 years ago

Hi, if I have something like the following

index.html

<script inline src="main.js">

main.js

/* lots of code */
var a = "<script></script>";
/*lots of code */

</script> tag doesn't get escaped to something like '</scr'+'ipt>'. It breaks everything that follows after it.

sashasochka commented 9 years ago

I realized the problem is in inline-source - so opened issue there https://github.com/popeindustries/inline-source/issues/9 .