|
Posted by Steve on 03/14/07 19:52
"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:op.to60fsviqnv3q9@misant...
| 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);
that, or just use css...as in:
<span style="white-space:nowrap;">from here- -to here</span>
Navigation:
[Reply to this message]
|