I have a blob of HTML. How can I use jQuery to remove the class
attribute from all anchor tags in the blob and then return the resulting HTML?
I feel like this should work, but it doesn't:
$(blob).filter('a').removeAttr('class').end().html()
(It returns the empty string)
Bonus points if you explain why my solution is wrong.