Implemented assert_dom_equal with Loofah. Added Loofah as a dependency in actionpack.gemspec.
Made FullSanitizer prune elements before returning text.
Added a contains_bad_protocol? to ActionView::WhiteListSanitizer.
Changed the order of name and href in a-tag to match with output.