Write Better Markup with HTML Inspector

What would be the best way to use this as part of a grunt build process?