4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 PHP: Reversing htmlspecialchars()
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Iyonix
WebHelper
WebHelper


Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England

PostPosted: Sun Jan 26, 2003 2:40 pm (14 years, 10 months ago) Reply with QuoteBack to Top

Is there are reverse function to htmlspecialchars() or would I need to write my own function?
I had a look on php.net but couldn't find anything Sad

Thanks,

________________________________
Iyonix
OfflineView User's ProfileFind all posts by IyonixSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sun Jan 26, 2003 2:45 pm (14 years, 10 months ago) Reply with QuoteBack to Top

No, I don't think there is one. However, I don't really understand why you would need such a function... Could you explain? Maybe there's no need for such a function? Question Smile

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
php4ever
Junior WebHelper
Junior WebHelper


Joined: 10 Oct 2002
Posts: 49

PostPosted: Thu Jan 30, 2003 8:27 am (14 years, 10 months ago) Reply with QuoteBack to Top

This topic sparked my interest in doing a little research tonight and I found
the following url which you may find helpful:

http://www.php.net/manual/en/function.html-entity-decode.php

Bottom line, if you have PHP 4.3+ you can use the html-entity-decode function to translate an html entity back to its original character. And, if you don't have PHP 4.3+ an alternative solution is outlined.

-- php4ever
OfflineView User's ProfileFind all posts by php4everSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Thu Jan 30, 2003 4:48 pm (14 years, 10 months ago) Reply with QuoteBack to Top

They obviously figured out it was something lacking in PHP Very Happy. Congratulations to the PHP dev team! Smile

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.053961 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme