There's an issue with the HTML pattern that breaks if open & close tags are on separate lines in certain cases: 