Results 1 to 4 of 4

Thread: Html decode

  1. #1
    Join Date
    Jul 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Html decode

    I have the folowing special character(& #259; & nbsp; & #351; ) into a database. Can someone please tell me how can i make them been interpreted, i mean how can i see what are the character for that special code.

  2. #2
    Join Date
    Sep 2006
    Location
    Eureka, California
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did you try html_entity_decode() ??

    example:
    Code:
    $foobar = "& #259; & nbsp; & #351;"; (without spaces)
    print html_entity_decode($foobar);
    & nbsp; will be not show as that is the code for a [space] (ref: http://www.lookuptables.com/)

  3. #3
    Join Date
    Jul 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks! ...for that answer ...i try that and it workt.
    Last edited by dardanel; 10-19-2006 at 08:56 AM.

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,626
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Hi

    I am extremely sorry for my earlier post, which was misleading. The code posted by AbelaJohnB works perfectly.

    Sorry once more about the confusing act from my side.

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
  •