I have a textbox and submit button which posts the content and a reply to the HTML page. Is there any way (other than checking if the string's substring at the beginning is
<h1>,<h2>,<h3>...,<script>,<style>,etc.
to see if a string will be formatted differently when it is posted on the page, in order to prevent code injection?
Thanks
-Zach