cleanup block & html code