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 <b>dog</b> now"; $a = htmlentities($orig); $b = html_entity_decode($a); echo $a; // I'll "walk" the <b>dog</b> now echo $b; // I'll "walk" the <b>dog</b> now But if I modify $orig to include spaces like so $orig = "I'll \"walk\" the < b >dog</b> now"; the output is I'll "walk" the < b >dog</b> now I'll "walk" the < b >dog now -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php