Cleanup and indent HTML widget helper class