title: Escaping HTML to insert as data-attribute (Bootstrap Popover, Rails)
body: <p>I'm trying to use rails helper as a source for data-content attribute of Bootstrap Popover. All things come together inside of Rails helper:</p>
  
  <pre><code>content_tag :span, "Something", data: { toggle: "popover", trigger: "hover", content: some_helper }
  </code></pre>
  
  <p><code>some_helper</code> produces a list (styled by bootstrap):</p>
  
  <pre><code>&lt;ul class="list-group"&gt;...&lt;/ul&gt;
  </code></pre>
  
  <p>And the issue is that class="..." inside of data attribue breaks the markup. So there should be some way to escape double quotes <code>\"</code> or to force rails helper using single quotes. Or any better solution?</p>