SyntaxError: '' literal not terminated before end of script

Are you seeing this error in your firefox developers tools console, if so, this is how you solve it:

I'll keep it simple and short. You need to escape the single quotes or double quotes. This was the ajax response I was getting when it triggered this error:


<i ReplyLiveCmd="$('#Time1579420290').before('<div id="Time1579420290">[Time1579420290] this are my comments onk ');"></i>

As you can see, I am using double quotes within double quoutes, you will need to escape it and change it to:

<i ReplyLiveCmd="$('#Time1579420290').before('<div id=\'Time1579420290\'>[Time1579420290] this are my comments onk ');"></i>