I have a JavaScript in which one of the line is
imgtag = '<div style="float:left; padding:0px 10px 5px 0px;"><a expr:href="data:post.url"><img src="'+img[0].src+'" width="218px" height="170px"/></a></div>';
In the above code I want <a expr:href="data:post.url">
to be changed in <a expr:href='data:post.url'>
but adding this type of closing tag is conflicting with the Javascripts closing tag. What should I do ?