Use ' in JS and " in HTML:
content = content.concat('<a href="#" onclick="highlight(\'' +
value + '\')">' + conversationid + '</a>');
You don't need to escape " in a string when you use ' as delimitator
UPDATED: I did not realized that string is HTML and JS together, now it should work (added some escaped single quotes in the onclick attribute declaration)