I forgot to turn off html spitting for long descriptions, now it is turned off
This commit is contained in:
parent
3aca654d83
commit
1558507795
1 changed files with 1 additions and 1 deletions
|
@ -965,7 +965,7 @@ function nullyp($str) {
|
|||
|
||||
function strip($str,$uri) {
|
||||
if (nullemp($str)) return(null);
|
||||
echo '<pre>'.htmlentities($str).'</pre>';
|
||||
//echo '<pre>'.htmlentities($str).'</pre>';
|
||||
$str=preg_replace(['#^\s*#m','#[\r\n]#'],['',' '],$str);// strip all spaces from empty lines, then all carriage return and new line chars
|
||||
$str=preg_replace('#<br\s+/>#i','<br>',$str);// convert all "<br />" to "<br>"
|
||||
$str=preg_replace('#<a\s+[^>]*></a>#i','',$str);
|
||||
|
|
Loading…
Reference in a new issue