Typo3 atumoatic generate some ugly comments. Like :
<!--TYPO3SEARCH_begin--> ...your HTML .. <!--TYPO3SEARCH_end-->
To remove above ugly typo3 comments.
For that you have to put following TypoScript in your page template file
page.config.disablePrefixComment = 1
After adding of above script. please clear all cache of your typo3.
and say Good bye to ugly typo3 comments.
If you have any queries, please do not hesitate to contact me at Jainish Senjaliya