Good point. If only there were a way to mark a section of HTML as "no scripting here". Inside that section all <script> tags would be ignored, all onclick and similar attributes would be ignored, etc.
That said, even if that existed, there'd still probably be some dangers you'd have to be careful to avoid.
77 years since Von Neumann, and we're still stuck holding our instructions in the data