How should I write HTML comment syntax (“<!-- … -->”) in a string literal inside a <script> element, without it being interpreted as an HTML comment?
13:33 01 Sep 2010

I found a bit of code on the web that I would like to use.

$(document).ready(function() {
$(".fbreplace").html.replace(//g, "");
$(".fbreplace").style.display = "block";
});

The problem is the browser thinks