I need to write the reverse of this function please help

  function outputThis($outputString) 
{ 
    $sendToBrowser = stripslashes(htmlentities($outputString, ENT_QUOTES, 'UTF-8')); 
    return $sendToBrowser; 
}   

Thanks in advance

    the reverse of stripslashes is "addslashes"

      This will be the full code 🙂

      <php
        function reverseOutputThis($outputString)
        {
           $sendToBrowser = addslashes(html_entity_decode($outputString, ENT_QUOTES, 'UTF-8'));
           return $sendToBrowser;
        }
      ?>

      Cheers,

      Ryan Jones

        Write a Reply...