title: .NET MVC /Javascript escape single quotes from dynamic HTML
body: <p>I get some dynamic HTML from a server, that i want to put in an iframe. This works:</p>
  
  <pre><code>document.getElementById('iframe').contentWindow.document.write('@Html.Raw(Data)');
  </code></pre>
  
  <p>The problem is that the Data (the HTML that i recieve) may contain " and ' which will conflict with my 's surrounding the html-data. Any way to solve this?</p>