title: Having issue with mysql_real_escape_string and before it was fine
body: <p>I will take an small example of my issue. this code were perfect 6 hours back but now there is some problem and i dont know what it is?</p>
  
  <p>here is my small php. i am able to find out problem is <strong>mysql_real_escape_string</strong> but i dont know how to fix this damn fast.</p>
  
  <pre><code>&lt;?php
  // database connection
  require_once 'includes/inc/config.php';
  $date = new DateTime();
  $newtime = $date-&gt;format('U');
  // we are taking post_text = &lt;img id="profile_pic" width="200px" height="600px" src="image/user/1.jpg"&gt;
  if (isset($_POST['submit-post'])) {
      $content = mysql_real_escape_string($_POST['post_text']);
      if ($got != "" &amp;&amp; $send != "" &amp;&amp; strlen(trim(preg_replace('/\xc2\xa0/',' ',$content))) != 0) {
          $postnow = mysql_query("INSERT INTO `comment`(`send`,`got`,`content`,`time`) VALUES ('$send','$got','$content','$newtime')");
      }
  }
  ?&gt;
  </code></pre>
  
  <p>For display</p>
  
  <pre><code>&lt;?php
  
  require_once 'library/all/HTMLPurifier.auto.php';
  
  // reading content which was saved when user posted comment
  // getting it from database ex: &lt;img id="profile_pic" width="200px" height="600px" src="image/user/1.jpg"&gt;
  
  $config = HTMLPurifier_Config::createDefault();
  $purifier = new HTMLPurifier($config);
  $content = $purifier-&gt;purify($content); 
  
  // and then echo
  
  echo $content;
  
  ?&gt;
  </code></pre>
  
  <p>This short of my post display on every page.</p>
  
  <p>Here is my <strong>output</strong> what i get</p>
  
  <p>this is broken image and before it was not broken any idea what has happen? </p>
  
  <pre><code>&lt;img id=\"profile_pic\" width=\"200px\" height=\"600px\" src=\"image/user/1.jpg\"&gt;
  </code></pre>
  
  <p>PS: this still work fine on localhost. I am bit confused if my server provider upgrade something or like that. I have no idea. Thank you all.</p>