How to Prevent User from Entering HTML
How to disable/Prevent/Don't allow the User from Entering HTML tags in Textbox/TextArea in ASP.NET
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhishek KumarPosted Sep 30, 2014, 5:20 AM
You can use
Regex rgx = new Regex("<[^>]*>");
Regular expression validator.
Hope this will help.
Abhishek