I know how you can use "s and 's for strings, and I discovered that you can use \"s so you can probably do \'s. But what if you had five strings? Like this:
Function("Function('Function(\"Function(\'alert("hi")))));
Except the problem with that is that the alert is "s again. That wont work. Is there any way to do it without a variable? Like:
var extraquote = "alert('hi')"
Function("Function('Function(\"Function(\'"+extraquote+"\')\")')");
I no you would never want to do that, but for something like that, with 5 quotes inside each other.



Reply With Quote


Bookmarks