aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/xchan.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/xchan.php b/mod/xchan.php
index a4dc70550..714603f6e 100644
--- a/mod/xchan.php
+++ b/mod/xchan.php
@@ -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;
}
}
}