4 ms·
$(body).html().replace(/<!--|-->/g,'');
by mouseroot 14y ago
$(body).html().replace(/<!--|-->/g,'');
- jQueryIsAwesome 14y agoMultiple errors, it should be: $("body").html(function(i,h){return h.replace(/<!--|-->/g,'')}) jQuery is awesome (is even my nickname!) but sometimes plain Javascript does the trick pretty well.
- mouseroot 14y agoyea i tried it in the firefox console after i posted it. it felt wrong and lol it was