I forgot to turn off html spitting for long descriptions, now it is turned off

This commit is contained in:
pezcurrel 2024-08-25 19:08:01 +02:00
parent 3aca654d83
commit 1558507795

View file

@ -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);