title: Escaping double double quotes in html attributes in Javascript
body: <p>I use bootstrap and create html nodes which contain popovers with jQuery. The popovers contain html so that I have problems with the quotes and escaping:</p>
  
  <pre><code>var content = '&lt;input type="text" ng-model="test1" /&gt;';
  var txt =     '&lt;button type="button" data-container="body" ' +
                       'data-toggle="popover" title="myTitle" data-html="true" '+
                       'data-content="'+content+'"&gt;Click&lt;/button&gt;';
  </code></pre>
  
  <p>How can I escape the double quotes inside the attributes => html-attributes? in the data-content attribute correctly?</p>
  
  <p><strong>Edit:</strong> I compile the code with angular so that it should also work with it.</p>