Answer the question
In order to leave comments, you need to log in
How to add exclusion tag to regex?
Good day, dear experts.
There is such a code that cuts out comments from html code.
// remove HTML comments (not containing IE conditional comments).
$this->_html = preg_replace_callback(
'/<!--([\\s\\S]*?)-->/'
,array($this, '_commentCB')
,$this->_html);
<!--noindex-->
and<!--/noindex-->
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question