This can actually be a handy function for sanitizing HTML input, for example in a Rich Text Editor where you want to allow pastes from Word or dragging HTML content into a contentEditable div – pass the html() to a temp div, removeAttributes on all elements, then pass it to your DB.