Fix HTML tag matching