
That's what happens when you can mix text formatting with executable code
HTML has been hopelessly broken since it allowed executable code within what should have been text formatting. A sensible mode wouldn't have allowed it, keeping it separate and enforcing the source.