I have php 3.2.1 and want to decode html tags for example < or > I know of html_entity_decode in php 4 and above but not sure what do you for PHP 3?
I have php 3.2.1 and want to decode html tags for example < or
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The preferred solution would be to upgrade PHP so that it doesn’t make your hair stand on end when you hear what version it is…
Other than that, you ‘d have to implement your own given a list of HTML entities, a loop and
str_replace. Even then you ‘d have another possible problem: encodings (PHP 3 doesn’t offer any encoding conversion support, so you ‘d have to code that too if you need it).