make the output a bit more readable

This commit is contained in:
friendica 2014-09-17 19:14:23 -07:00
parent 618b93d42e
commit 02fa970569

View File

@ -22,7 +22,7 @@ function xchan_content(&$a) {
if($r) {
foreach($r as $rr) {
$o .= str_replace("\n","<br />",print_r($rr,true)) . EOL;
$o .= str_replace(array("\n"," "),array("<br/>","&nbsp;"),print_r($rr,true)) . EOL;
$s = q("select * from hubloc where hubloc_hash like '%s'",
dbesc($r[0]['xchan_hash'])
@ -30,7 +30,7 @@ function xchan_content(&$a) {
if($s) {
foreach($s as $rr)
$o .= str_replace("\n","<br />",print_r($rr,true)) . EOL;
$o .= str_replace(array("\n"," "),array("<br/>","&nbsp;"),print_r($rr,true)) . EOL;
}
}
}