so you want the textfield to display the "&foobar" and not "&foobar" ? I believe it would be in the htmlentities? or htmlspecialchars?