I have requirement of validating user input in a text box. Whenever a html tag is entered it should display the same view with friendly error message like \"Cannot enter htm
Good morning this looks like an excellent starting point to be able to handle your requirement. Check out this article.