function htmlEnd($s)
{
$matches = array();
$result = preg_match($this->closeTag('html'), $s, $matches, PREG_OFFSET_CAPTURE);
if ($result === false || !$matches) {
return false;
}
// Return the offset of the first match.
return $matches[count($matches) - 1][1];
}