HTML allows to use as a valid identifier (ID) a colon. For example:
<div id="item:0">...</div>
The problem is I have a Jquery snippet like this:
$("#" + id).clone(true, true);
When some ID uses a colon this call makes JQuery crash. What can I do to make it work? (Note: changing colon symbol for other valid character is not an option)
Escape the id with something like
before you try selecting it.