[Break on this error] var response = { content: '<script type="text/
javascript"><!--
=> That seems like it is a multilines problem right ?
No. The problem is that your double-quoted string contains double
quotes!
But I don't know
how to resolve it.
There are quoting constructs that would do the trick. But you have a
bigger problem: you really shouldn't be doing this in the controller.
Rendered JS, like rendered HTML, belongs in the view.
No. The problem is that your double-quoted string contains double
quotes!
It contains double-quotes but they are escaped aren't they ?
There are quoting constructs that would do the trick. But you have a
bigger problem: you really shouldn't be doing this in the controller.
Rendered JS, like rendered HTML, belongs in the view.
In fact this code isn't print in my HTML but in the HTML of another
website, thiat is why it is in a controller and not a view
No. �The problem is that your double-quoted string contains double
quotes!
It contains double-quotes but they are escaped aren't they ?
Whoops! You're right. I somehow overlooked the backslashes.
There are quoting constructs that would do the trick. �But you have a
bigger problem: you really shouldn't be doing this in the controller.
Rendered JS, like rendered HTML, belongs in the view.
In fact this code isn't print in my HTML but in the HTML of another
website, thiat is why it is in a controller and not a view
Doesn't matter. If it goes to the user's browser, it should generally
be in a view.