SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    imagine no limitations exbabylon's Avatar
    Join Date
    Dec 2000
    Location
    Idaho, USA
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    htmlspecialcars not working...

    this combination is NOT working to make a single quote (apostrophe)

    PHP Code:
    ' 
    It changes everything else correctly...

    PHP Code:
    '&' (ampersandbecomes '&' 

    '"' 
    (double quotebecomes '"'

    '<' 
    (less thanbecomes '&lt;' 

    '>' 
    (greater thanbecomes '&gt;' 
    any help would be appreciated....

    here's my exact code that is NOT working...

    Code:
    $bullet_style = htmlspecialchars($bullet_style, ENT_QUOTES);
    thanx
    Last edited by exbabylon; Feb 18, 2001 at 13:53.
    Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.

    Exbabylon- Professional Internet Services

  2. #2
    imagine no limitations exbabylon's Avatar
    Join Date
    Dec 2000
    Location
    Idaho, USA
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    fogive my examples... this board seems to not be parsing everything.... it's exporting my code as is and the borwser parses it as a double quote of and sign, etc....
    Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.

    Exbabylon- Professional Internet Services

  3. #3
    imagine no limitations exbabylon's Avatar
    Join Date
    Dec 2000
    Location
    Idaho, USA
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can take out the fact that the double quotes are NOT being changed iether...

    It seems that all it's converting is

    the and (&) sign
    the greater than (>)
    the less than (<)

    that's it! Any help???
    Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.

    Exbabylon- Professional Internet Services

  4. #4
    imagine no limitations exbabylon's Avatar
    Join Date
    Dec 2000
    Location
    Idaho, USA
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got it working.. it's still a little buggy (at least it seems so).
    Blamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.

    Exbabylon- Professional Internet Services


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •