I am not using the experience cloud id service. I am just loading it a java script via rules as that is how it was done in signal previously. The actual issue is:
For example if the javascript is as below.
<script>
var test = '<script src=""><\script>';
var test1="adasd";
</script>
Browser will treat </script> in the second line as end of script spit out the rest on the browser directly as below.
<script>
var test = '<script src="">
</script>
;var test1="adasd";
Somehow I tried to fix it by doing as below:
<script>
var test = '<script src=""><\scr'+'ipt>';
var test1="adasd";
</script>
The above code worked in normal browser but when I put the script via launch seems like the code is getting converted while build I suppose and getting same issue again.