Recommended Solution: String Break and ConcatenateTo solve this you just have the get rid of tag by cutting the string in two
With this it will work, but there are still other ways to do it, but I recommend the above solution.
"Escaping" the forward slash (/)Escaping the forward slash with backslash will also work ( <\/script> ) it appears to be cleaner, but for some reason Mozilla Developer Network article Values, variables, and literals says we should avoid this practice. This seems to work on other browsers and IE too.
This method does not solve the closing script tag problem cause this actually removes it's existence. This is the same method google analytics use to prevent this error.
This (ugly fix) is used on old Google Analytics