Fix: Function was truncated lines ended with n and r
This commit is contained in:
parent
47d77ba51b
commit
b8af89aae3
@ -2533,7 +2533,7 @@ function dol_htmlentitiesbr_decode($stringtodecode,$pagecodeto='UTF-8')
|
||||
*/
|
||||
function dol_htmlcleanlastbr($stringtodecode)
|
||||
{
|
||||
$ret=eregi_replace('(<br>|<br( [ a-zA-Z_="]*)?/?>|\n|\r)+$',"",$stringtodecode);
|
||||
$ret=eregi_replace('(<br>|<br( [ a-zA-Z_="]*)?/?>|'."\n".'|'."\r".')+$',"",$stringtodecode);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user