View Single Post
Old 05-15-2013, 04:40 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,091
Just an add on.

I was assuming that it was a <br> in there. It could be all sorts of html code that is invisble to the eye (hidden divs, etc) so probably to make sure all possible tags are covered then a better one line solution might be

<?php print strip_tags(str_replace(array("\r\n","\r")," ",$hi->hello)); ?>

And I tend not to use \r\n so my way would probably be (actually my way would be to change it in the db but the OP says he does not have that access, so)

<?php print strip_tags(str_replace(array(chr(10),chr(13))," ",$hi->hello)); ?> which is basically the same thing just different.

The OP needs to look under the sheets (view source) and see exactly what is in the output that is causing the line break in order to derive the best solution.

.
__________________
All cookies cleared!

Last edited by sarettah; 05-15-2013 at 04:44 PM..
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote