I know how to get the html source code via cUrl, but I want to remove the comments on the html document (I mean what is between ). In addition,
Regex solved this problem for me as follows:
function remove_html_comments($html = '') { return preg_replace('//', '', $html); }