title: Replace a single quote ( ' ) with another quote (’) str_replace
body: <p>I am trying to replace  a single quote (<code>'</code>) with another quote (<code>’</code>), but I can't seem to get anything to work. 
  Also, how can I make this work on multiple strings <code>($text, $title, $notice)</code>?</p>
  
  <blockquote>
    <p>input: don't</p>
    
    <p>output: don’t</p>
  </blockquote>
  
  <p>I am trying this:</p>
  
  <pre><code>$text = str_replace(array("'",'"'), array('’'), $text);    
  $text = htmlentities(str_replace(array('"', "'"), '’', $text);
  $text = htmlentities(str_replace(array('"', "'"), '’', $_POST['text']));
  $text = str_replace("'" ,"&amp;rsquo;",$text);
  $text = str_replace("'" ,"’",$text);
  $text = str_replace(array("'"), "&amp;rsquo;", $text);
  $text = str_replace(array("\'", "'", "&amp;quot;"), "&amp;rsquo;", htmlspecialchars($text));
  $text = str_replace(array('\'', '"'), '’', $text);
  $text = str_replace(chr(39), chr(146), $text);
  $text  = str_replace("'", "&amp;ampquot;", $text); 
  </code></pre>
  
  <p>None of this works.</p>