htmlentities

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
jazz090
Forum Contributor
Posts: 176
Joined: Sun Apr 12, 2009 3:29 pm
Location: England

htmlentities

Post by jazz090 »

a new parameter was added to htmlentities which it ignored double encoding in php 5.2 but my webserver is set to 5.1
so its breaking down on it. is there any way to stop double encoding using only three parameters?
User avatar
jazz090
Forum Contributor
Posts: 176
Joined: Sun Apr 12, 2009 3:29 pm
Location: England

Re: htmlentities

Post by jazz090 »

bump
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: htmlentities

Post by Darhazer »

Applying html_entity_decode before html_entities may solve your issue.
User avatar
jazz090
Forum Contributor
Posts: 176
Joined: Sun Apr 12, 2009 3:29 pm
Location: England

Re: htmlentities

Post by jazz090 »

yes nice one
Post Reply