title: Prevent html tags entries in mvc textbox using regular expression
body: <p>I want to prevent any html tags (written between "&lt;>") in a textbox in my mvc 4 application.
  I have given the data annotation regular expression for my property as follows:</p>
  
  <pre><code>    [RegularExpression(@"&amp;lt;[^&gt;]*&gt;",ErrorMessage="Invalid entry")]
      public string Name { get; set; }
  </code></pre>
  
  <p>But the regular expression not working correctly. When I type  , it shows "Invalid entry".After that, when I type some normal text like "praveen" also shows "Invalid entry" error message.</p>
  
  <p>I have tried another regular expressions something like  @"&lt;[^>]*>" ,but same result as above.</p>
  
  <p>Please help.</p>