Jquery - replace tag with another
$('li').replaceWith(function(){ return $("<div />").append($(this).contents()); });