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!
|