Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


yea i tried it in the firefox console after i posted it. it felt wrong and lol it was




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: