onCommentHTML()

This function is called for every HTML/XHTML comment.

$commentstring - the contents of the HTML comment, excluding the angle brackets; for example, if the comment is <!--test-->, then $commentstring will be "!--test--"

To create your own custom validation directives using standard HTML comments it is recommended that you use onCommentHTML_CSE().

This function is supported by CSE HTML Validator v10.9921 and later.

Example:

function onHTMLComment() {
 MessageEx(13|1024,2011083000,MSG_COMMENT,'HTML comment: '+$commentstring);
}