Reply to Re: echo multiple space chars to html

Your name:

Reply:


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('
| ','&nbsp;',$string);

that, or just use css...as in:

<span style="white-space:nowrap;">from here- -to here</span>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация