Posted by Rik on 03/14/07 19:00
Richard <donotuse@funpods.com> wrote:
> Hi there,
>
> Is there a string filter function that can help me to echo a string with
> multiple space chars "from here- -to here" so that the
> spaces are maintained in the html and doesn't appear with the white space
> collapsed ....
>
> from here- -to here
>
> in the browser?
>
> htmlentities() doesn't seem to solve it, Thank you for your time!
Either echo it in a <pre> element (recommended!) or do a str_replace('
',' ',$string);
--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel
[Back to original message]
|