Loading ...
Sorry, an error occurred while loading the content.

htmlspecialchars Function is not working

Expand Messages
  • anu_id2006
    Message 1 of 2 , Jul 11, 2007
    • 0 Attachment
      <?
      $str = "<script>contact</script>";
      //its output will be <script>contactltscriptgt --- something like
      this
      $val=htmlspecialchars($str, ENT_QUOTES);
      echo $val;
      ?>
      htmlspecialchars Function is not working it shows
      "<script>contact</script>" this only
    • prem panshette
      Hi Instead of this htmlspecialcha rs($str, ENT_QUOTES); use htmlentities($str); anu_id2006 wrote:
      Message 2 of 2 , Jul 11, 2007
      • 0 Attachment
        Hi
        Instead of this
        htmlspecialcha rs($str, ENT_QUOTES);

        use

        htmlentities($str);

        anu_id2006 <anu_id2006@...> wrote: <?
        $str = "<script>contact</script>";
        //its output will be <script>contactltscriptgt --- something like
        this
        $val=htmlspecialchars($str, ENT_QUOTES);
        echo $val;
        ?>
        htmlspecialchars Function is not working it shows
        "<script>contact</script>" this only






        ---------------------------------
        Here’s a new way to find what you're looking for - Yahoo! Answers

        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.