HTML_COMMENT_MATCHED¶
Description¶
The HTML_COMMENT_MATCHED event is raised when an HTML comment is
encountered in a document and there is a rule attached to the HTML
profile that says to raise an event on matching comments.
Examples¶
when HTML_COMMENT_MATCHED {
if { ! ( [HTML::comment] contains "\[" ) } {
HTML::comment remove
}
}
when HTML_COMMENT_MATCHED {
HTML::comment append "some_string"
}
when HTML_COMMENT_MATCHED {
HTML::comment prepend "some_string"
}