I have designed a website which has many JavaScript blocks:
<script type='text/javascript'></script>
Users can post to my page and a malicious user could post a script block as a post. What I want is for the script block in user's posts to be treated as text rather than as code.
I know I can validate the input and filter out the <script>
blocks, but for the satiation of my curiosity, is there a way to block specific <script>
tags from running after the page is loaded?