Trying to strip HTML comments from a web page, someone else must have done this.
I'm using
which works most of the time but sometimes causes an error. Is there a more reliable one?
I'm using
Code:
$page = preg_replace('/<!--(.|\s)*?-->/', '', $page



Comment