I have written a function in a JavaScript file to return a string, and I am calling this function within a script tag inside an HTML file.
function getExp()
{
var exp = "]]><!\\[CDATA\\[";
return exp;
}
However, when I call the function, it is returning:
]><!\[CDATA\[
I'm confused as to why the string is not being returned by the function as it is. What could be the issue?