title: wordpress wp editor, insert data into database (secure way)
body: <p>i have a form in the wordpress front end , </p>
  
  <p>i use this to insert de value in database.</p>
  
  <p>Example Post Action:
  Supose $content get post value from wp_editor</p>
  
  <pre><code>$content="
  &lt;p style='font-size:12px;'&gt;This is my name: peter&lt;/p&gt;
  &lt;p&gt;Photo&lt;/p&gt;
  &lt;img src='images/photo.png' &gt;
  ";
  stripslashes(trim($content));
  </code></pre>
  
  <p>after this process i insert the value in database, row type longtext. </p>
  
  <p>I'm not sure this is secure way to insert this data type in the database.</p>
  
  <p>the other question is, how print this value? i read using addslashes but I'm not sure.</p>
  
  <p>I don't wan sql injection in my site.</p>
  
  <p>Thanks!</p>