SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2003
    Location
    Romania
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Decode some text and then save it in the database

    Hey guys!

    I'm having some trouble with saving some encoded text in the database.

    The text looks like this: http://pastebin.mozilla.org/667443

    If you paste that in a html file and then open it in the browser, you can see the human readable text.

    My question is: how can I convert that text in human readable text and then save it in the database?

    Thanks.

  2. #2
    SitePoint Addict fattyjules's Avatar
    Join Date
    Dec 2005
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this is what you're after;

    http://us2.php.net/manual/en/functio...ity-decode.php

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2003
    Location
    Romania
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep! Seems that html_entity_decode() is doing the job. Thanks.


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
  •