Yes, Cloudflare does this through Auto Minify. Auto Minify will remove all unnecessary characters from HTML, JavaScript and CSS files, without changing their functionality.
Auto Minify can be found under the 'Speed' section.
Note: If you find that features on your site are breaking because of Auto Minify, please turn the feature off and report the bugs to us.