[PHP] Re: html_entity_decode is trying to kill me

2012-02-17 Thread Marc Guay
This info might be helpful. If I copy and paste the example from the manual directly, it works as described: $orig = "I'll \"walk\" the dog now"; $a = htmlentities($orig); $b = html_entity_decode($a); echo $a; // I'll "walk" the dog now echo $b; // I'll "walk" the dog now But if I modify

[PHP] Re: html_entity_decode is trying to kill me

2012-02-17 Thread Marc Guay
Answering myself sort-of, I think I'm on the wrong track with html_entity_decode(). Does an HTML "entity" refer to an HTML code like rather than the encoded format of characters? It seems like htmlspecialchars_decode() is actually what I'm looking for, but I'm getting the same results with that.