title: Rails - Outputting content, sanitize or <%=h?
body: <p>I recently made a small rails3 app to convert an old cms written in another language. After migrating the content I am having problems outputting content from the database.</p>
  
  <p>The @content.desc field sometimes has html. Currently the only way I could get it to work was:</p>
  
  <pre><code>&lt;%= sanitize content.desc %&gt;
  </code></pre>
  
  <p>But is this the best way? When I use <code>&lt;%=h @content.desc %&gt;</code> I can see the html tags still. When I use <code>&lt;%= simple_format @content.desc %&gt;</code> I get wicked spacing. </p>
  
  <p>Is there a definitive guide somewhere where I can see all of the options while outputting content? I've tried to search but can't turn anything up (rails newb, i know).</p>