I think you are trying to do:
var htmlcontent = $('.content').remove(".dontgrab").html();
You could use .not() if the situation was like:
var htmlcontent = $('div').not(".dontgrab").html();
BEFORE
AFTER
DON'T GRAB
I dont think you can use .not for selected elements children. I hope it helps