Forum Moderators: open
When I redisplay their text for editing, the is looks like a normal space, which means the client can't see that it's really character entity.
How do I get it to display as the character entity?
Yeah, that's what I did in the first message to get the   to appear.
As often happens, my mind was whirling last night working on this problem. The solution is pretty simple. Use:
htmlspecialchars($input)
before you display the data, and it will make the   appear.
In this case, I can use ENT_NOQUOTES, and I don't have to worry about the other characters that htmlspecialchars() tranforms:
'&' (ampersand) becomes '&'
'"' (double quote) becomes '"' when ENT_NOQUOTES is not set.
''' (single quote) becomes ''' only when ENT_QUOTES is set.
'<' (less than) becomes '<'
'>' (greater than) becomes '>'