forked from leftypol/leftypol
use 
 when new lines are a must if minify_html is enabled
This commit is contained in:
parent
3a16a570dd
commit
0ac75577ac
1 changed files with 5 additions and 0 deletions
|
@ -1276,12 +1276,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function quote($body, $quote=true) {
|
function quote($body, $quote=true) {
|
||||||
|
global $config;
|
||||||
|
|
||||||
$body = str_replace('<br/>', "\n", $body);
|
$body = str_replace('<br/>', "\n", $body);
|
||||||
|
|
||||||
$body = strip_tags($body);
|
$body = strip_tags($body);
|
||||||
|
|
||||||
$body = preg_replace("/(^|\n)/", '$1>', $body);
|
$body = preg_replace("/(^|\n)/", '$1>', $body);
|
||||||
|
|
||||||
|
if($config['minify_html'])
|
||||||
|
$body = str_replace("\n", '
', $body);
|
||||||
|
|
||||||
return $body . "\n";
|
return $body . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue