Refine HTML log detection.