Quote:
Originally Posted by Custard7A
Well, there you go shadowsai. You see these code blocks:
They aren't replacing any conjoining spaces with nbsp, just outputting the text into a pre element.
All you need is:
PHP Code:
$original = 'This had 5 spaces';
echo '<pre>' . $original . '</pre>';
|
Thanks! I can't believe that one slipped my mind.
Yeah, I knew that it was the HTML that was causing the spaces to be collapsed, but couldn't think of something other than replacing everything with .