HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by mouseroot | Hacker News Reader
Parent
Full thread
mouseroot
·
$(body).html().replace(/<!--|-->/g,'');
View on HN
jQueryIsAwesome
·
Multiple 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
·
yea i tried it in the firefox console after i posted it. it felt wrong and lol it was
Reply on news.ycombinator.com