Webdetector Webmaster Forums - Your favorite webmaster community
 

Advertise Here Wordpress Premium Sportscrazyforum - Where Sport is a religion dnfame.com Spruce Host chooseapixel.com

Go Back   Webdetector Webmaster Forums - Your favorite webmaster community > Developers Corner > Programming > PHP Forum

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-2008, 07:06 AM
Member
Marketeer
 
Join Date: May 2008
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default htmlspecialchars_decode() PHP function alternative?

I am using the function "htmlspecialchars_decode()" to correctly display items in a database which have been submitted with special characters. When I call this function, I get the following error message "Fatal error: Call to undefined function: htmlspecialchars_decode() in /****/7/d228305703/htdocs/demo/newssidebar.php on line 20." Of course, the line and location of the error message varies. I need an alternative way to decode the special characters. I am pretty sure this is because of different versions of PHP. So, provide me with an alternative which does the same thing.

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 06-21-2008, 08:18 PM
Member
noobee
 
Join Date: May 2008
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default htmlspecialchars_decode() PHP function alternative?

That's because there is no htmlspecialchars_decode() function in PHP versions prior to PHP 5.

html_entity_decode() should provide similar results and is available in PHP 4.

http://us2.php.net/manual/en/function.html-entity-decode.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 02:15 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Ad Management by RedTyger