<a title="Delete" onclick="remove_file('folder', 4493,'Colin's folder')"><i class="icon-trash" style="cursor:pointer;"></i></a>
The above code has the html code '
to represent an apostrophe in the string. In Google Chrome, I am currently getting the following error from that line:
Uncaught SyntaxError: unexpected Identifier
I assume that one of those characters is breaking the parsing? I have other instances of this same code without the apostrophe code and I do not get the error. How can I fix this, while still being able to pass strings with apostrophes?
How about
'Colin\'s folder'
instead? Javascript understands backslash escapes.