.html(function(){});

.html(function(){});


It would be great to add this functionality to the .html();
$('#element').html(function(){
return 'xxx';
});
Right now the closest method to do this is
$('#element').html(htmlfun('#element'));