string formatting help
| From: | Chad Day | Date: | Fri, 06 Jul 2001 18:06:43 +0000 |
| Subject: | string formatting help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-56541@lists.php.net to get a copy of this message | ||
I'm trying to pull a string from a database to use in a javascript
function.. but it's doing line breaks on me, which in turn messes up the
javascript.
The string in the mysql db is like:
kjdsakjadk<br>skjdks<br><br>kjkdfjdfkjfd
When I pull it out, it becomes:
kjdsakjadk
<br>
skjdks
<br>
<br>
kjkdfjdfkjfd
I've tried replacing the br's with blank spaces or new line characters, but
in the html code it still breaks on those breaks when I echo it back out.
How can I force this string to be all on one line?
Thanks,
Chad