I realise that newlines can be kept when retrieving from a database by using str_replace(); but can the same be done for more than one space either side of some text.
The problem seems to be that even if there is more than one space between/before/after some text only one space is printed. Is there any way that the spaces can be kept?
I assume you are using HTML as output.
A HTML-page only displays one space no matter how many spaces are in your text, because otherwise every would be a mess.
something like str_replace(' ',' '); should do the trick.
But you should also check out the following php functions:
htmlspecialchars();
nl2br();
Signature/Avatar nuking: none (can be changed in your profile)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum