avoid mangling code blocks that intersect HTML tags, #24331