title: How do I allow HTML tags to be submitted in a textbox in asp.net?
body: <p>First, I want to let everyone know that I am using an aspx engine not a Razor engine.</p>
  <p>I have a table within a form. One of my textbox contains html tags like</p>
  <pre class="lang-html prettyprint-override"><code>&lt;/br&gt;Phone: &lt;/br&gt; 814-888-9999 &lt;/br&gt; Email: &lt;/br&gt; aaa@gmail.com.  
  </code></pre>
  <p>When I go to build it it it gives me an error that says:</p>
  <p>A potentially dangerous Request.Form value was detected from the client <code>(QuestionAnswer=&quot;...ics Phone:&lt;br/&gt;814-888-9999&lt;br...&quot;)</code>.</p>
  <p>I tried the validation request=&quot;false&quot; but it did not work.</p>
  <p>I am sorry I didn't add my html code for you to look at so far. I am pulling some question up where I can edit it, if need be.</p>
  <pre><code> &lt;%@ Page Title=&quot;&quot; Language=&quot;C#&quot; MasterPageFile=&quot;~/Views/Shared/Site.Master&quot;   Inherits=&quot;System.Web.Mvc.ViewPage&lt;dynamic&gt;&quot; %&gt;
  
  
  &lt;asp:Content ID=&quot;Content1&quot; ContentPlaceHolderID=&quot;TitleContent&quot; runat=&quot;server&quot;&gt;
  EditFreqQuestionsUser
  &lt;/asp:Content&gt;
  
  &lt;asp:Content ID=&quot;Content2&quot; ContentPlaceHolderID=&quot;MainContent&quot; runat=&quot;server&quot;&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
  $(document).ready(function () {
      $(&quot;#freqQuestionsUserUpdateButton&quot;).click(function () {
          $(&quot;#updateFreqQuestionsUser&quot;).submit();
      });
  });
  &lt;/script&gt;
  &lt;h2&gt;Edit Freq Questions User &lt;/h2&gt;
  
  &lt;%Administrator.AdminProductionServices.FreqQuestionsUser freqQuestionsUser =   ViewBag.freqQuestionsUser != null ? ViewBag.freqQuestionsUser : new   Administrator.AdminProductionServices.FreqQuestionsUser(); %&gt;
  &lt;%List&lt;string&gt; UserRoleList = Session[&quot;UserRoles&quot;] != null ? (List&lt;string&gt;)Session[&quot;UserRoles&quot;] : new List&lt;string&gt;(); %&gt;
  &lt;form id=&quot;updateFreqQuestionsUser&quot; action=&quot;&lt;%=Url.Action(&quot;SaveFreqQuestionsUser&quot;,&quot;Prod&quot;)%&gt;&quot; method=&quot;post&quot; onsubmit+&gt;
  &lt;table&gt; 
      &lt;tr&gt;
          &lt;td colspan=&quot;3&quot; class=&quot;tableHeader&quot;&gt;Freq Questions User Details &lt;input type =&quot;hidden&quot; value=&quot;&lt;%=freqQuestionsUser.freqQuestionsUserId%&gt;&quot; name=&quot;freqQuestionsUserId&quot;/&gt; &lt;/td&gt;
      &lt;/tr&gt;
       &lt;tr&gt;
          &lt;td colspan=&quot;2&quot; class=&quot;label&quot;&gt;Question Description:&lt;/td&gt;
          &lt;td class=&quot;content&quot;&gt;
              &lt;input type=&quot;text&quot; maxlength=&quot;2000&quot; name=&quot;QuestionDescription&quot; value=&quot;  &lt;%=freqQuestionsUser.questionDescription%&gt;&quot; /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
       &lt;tr&gt;
          &lt;td colspan=&quot;2&quot; class=&quot;label&quot;&gt;QuestionAnswer:&lt;/td&gt;
          &lt;td class=&quot;content&quot;&gt;
              &lt;input type=&quot;text&quot; maxlength=&quot;2000&quot; name=&quot;QuestionAnswer&quot; value=&quot;&lt;%=freqQuestionsUser.questionAnswer%&gt;&quot; /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan=&quot;3&quot; class=&quot;tableFooter&quot;&gt;
                  &lt;br /&gt;
                  &lt;a id=&quot;freqQuestionsUserUpdateButton&quot; href=&quot;#&quot; class=&quot;regularButton&quot;&gt;Save&lt;/a&gt;
                  &lt;a href=&quot;javascript:history.back()&quot; class=&quot;regularButton&quot;&gt;Cancel&lt;/a&gt;
          &lt;/td&gt; 
      &lt;/tr&gt;
      &lt;/table&gt;
        &lt;/form&gt;
  &lt;/asp:Content&gt;
  </code></pre>