Fixed html tag detection.