title: saving formatted text in mysql database
body: <p>I have a textarea and I am using WYSIWYG editor so that the users can format the text as they want: changing colors, making bold, changing size etc.. The problem is after I insert the data to the table and retrieve the rows, I don't see the formatting, just plain text. Is there something that I should do when inserting the text not to loose the format? my table <code>collation</code> is set to <code>utf8_unicode_ci</code></p>
  
  <p>Here is the html and I am using ajax to send the form so I don't have name attribute</p>
  
  <pre><code>&lt;textarea  id="description" class="jqte-test" &gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>The insert query is as below:</p>
  
  <pre><code>$desc = trim(strip_tags($_POST["description"]));
  $insert = $mysqli-&gt;prepare("insert into `test`(`description`) values(?)");
  echo $mysqli-&gt;error;
  $insert-&gt;bind_param('s', $desc);
  $insert-&gt;execute();
  </code></pre>