document: Simplify finding of HTML block end tag