Remove all tabs and spaces

hi, do you know a tool/script/something to remove all spaces and tabs
and maybe also returns in the html to “compress” the page? maybe
something that can be called automatically during the deploy, so i can
keep in my local machine/svn all indented and when i deploy make
something more fast to load