title: Rails Storing text body that's written with a rich text editor in HTML format
body: <p>Is it safe and conventional to store the html text input written with a javascript text editor into my database?</p>
  
  <p>Assume I'm using ckeditor for users to input their articles in my application. Articles look fine when you view it from the client side, but when you query it from the database, it's too messy.</p>
  
  <p>For example, the text body will be stored like below:</p>
  
  <pre><code>&lt;p class="MsoListParagraph" style="margin-left:56.0pt;mso-para-margin-left:0gd;
  text-indent:-18.0pt;mso-list:l3 level1 lfo1"&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang="EN-US" style="font-size: 12pt; font-family: 'Times New Roman';"&gt;-&lt;span style="font-size: 12pt; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang="EN-US" style="font-size: 12pt; font-family: 'Times New Roman';"&gt;Natural selection is a process that individuals
  have some heritable characteristics to survive and reproduce at a higher rate
  compare to other individuals. Natural selection increases the match between
  organisms and environments. Furthermore, as an environment changes or
  individuals move to a new place, natural selection may effect of adaptation to
  these new conditions by giving rise to new species in the process. Natural
  selection can only increase or decrease heritable traits.&amp;nbsp; &lt;u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;
  </code></pre>
  
  <p>The body is then rendered like <code>@article.body.html_safe</code></p>
  
  <p>Is there a better way to handle this matter?</p>