forked from Wavyzz/dolibarr
FIX dol_string_nohtmltag when there is html with windows EOL "<br>\r\n"
This commit is contained in:
@@ -5389,7 +5389,7 @@ function picto_required()
|
||||
*/
|
||||
function dol_string_nohtmltag($stringtoclean, $removelinefeed = 1, $pagecodeto = 'UTF-8', $strip_tags = 0)
|
||||
{
|
||||
if ($removelinefeed == 2) $stringtoclean = preg_replace('/<br[^>]*>\n+/ims', '<br>', $stringtoclean);
|
||||
if ($removelinefeed == 2) $stringtoclean = preg_replace('/<br[^>]*>(\n|\r)+/ims', '<br>', $stringtoclean);
|
||||
$temp = preg_replace('/<br[^>]*>/i', "\n", $stringtoclean);
|
||||
|
||||
if ($strip_tags) {
|
||||
|
||||
Reference in New Issue
Block a user