title: php htmlentities to decode textarea
body: <p>I have a text area and I would like to take the input of the text area and merge it all together. Everything works fine except that it's escaping the quotes. For example <code>test's</code> is outputted as <code>test/'s</code></p>
  
  <p>To fix this I tried htmlenttries such as, </p>
  
  <pre><code>&lt;?php $inputtext= $_POST['textinput'];
          $encodetext = htmlentities($inputtext);
          $finaltext = html_entity_decode($encodetext);
  
          echo '&lt;p&gt;'.$finaltext .'&lt;/p&gt;';  ?&gt;
  </code></pre>
  
  <p>This should work according to the <a href="http://www.php.net/manual/en/function.html-entity-decode.php" rel="nofollow noreferrer">html_entity_decode</a> manual (unless I read it wrong which could very likely be the case)</p>