title: How to insert wysiwyg edited text into database
body: <p><strong>The Idea</strong></p>
  
  <p>I have a forum in my project and i'm trying to implement wysiwyg editor to post questions and answers. Actually the project is already completed and now i'm trying to implement NicEdit wysiwyg editor to all the required textareas. I'm using the following lines of prior to database insertion of posted data :</p>
  
  <pre><code>$post_body = $_POST['post_body'];
  $post_body = nl2br(htmlspecialchars($post_body));
  $post_body = mysqli_real_escape_string($db_conx,$post_body);
  </code></pre>
  
  <p><strong>Problem</strong></p>
  
  <p>When I insert the posted data I'm getting the following output :</p>
  
  <p><img src="https://i.stack.imgur.com/6M6dj.png" alt="OUTPUT"></p>
  
  <p><strong>Conclusion</strong></p>
  
  <p>I want to know how to insert the wysiwyg edited content into the database. Apart from this, please suggest me some nice wysiwyg plugins which are easy to embed in my project. Currently, i'm using NicEdit which is pretty easy to embed but with limited functionalities.</p>