title: How can I enter quotes to "white list" on HtmlEncode?
body: <p>Heyy all!</p>
  
  <p>I'm using asp.net mvc 3 and AntiXssLibrary 4.2 and I try to encode some text with single or duble quotes and the problem is that I get  <code>&amp;#039; &amp;quot;</code> instead of ' or " and in Hebrew they are very useful (like רמב"ם or צ'ק). I know that there are included on the hebrew and default parameter on this method:</p>
  
  <pre><code>UnicodeCharacterEncoder.MarkAsSafe(
          LowerCodeCharts.Default | LowerCodeCharts.Hebrew,
          LowerMidCodeCharts.None,
          MidCodeCharts.None,
          UpperMidCodeCharts.None,
          UpperCodeCharts.None);
  </code></pre>
  
  <p>I try all the encoding methods with no expected result.</p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>for my second problem that I try to put on my view a html string like this</p>
  
  <pre><code>return new HtmlString(Encoder.HtmlEncode(resFile));
  </code></pre>
  
  <p>and i get all the html format instead the rendered page, the problem was that microsoft move the <code>GetSafeHtml()</code> method to the HtmlSanitizationLibrary assembly - I find it <a href="https://stackoverflow.com/a/11167578">on this answer</a> and I download it from <a href="https://dashingquill.googlecode.com/files/HtmlSanitizationLibrary.dll" rel="nofollow noreferrer">here</a>. Now I can use it like this</p>
  
  <pre><code>return new HtmlString(Sanitizer.GetSafeHtml(questionsAnswerString));
  </code></pre>
  
  <p>After that of course I added the reference </p>
  
  <pre><code>using Microsoft.Security.Application;
  </code></pre>
  
  <p><em>Now I'm stuck with those qoutes' any help?</em></p>