1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2025-02-01 12:31:38 +01:00

Keep spaces after tags - closes #2577

This commit is contained in:
FreeScout 2023-01-19 03:13:58 -08:00
parent b1187cbe4c
commit c33b770b2e

View File

@ -1258,9 +1258,11 @@ class Helper
$html = \Purifier::clean($html);
// It's not clear why it was needed to remove spaces after tags.
//
// Remove all kinds of spaces after tags
// https://stackoverflow.com/questions/3230623/filter-all-types-of-whitespace-in-php
$html = preg_replace("/^(.*)>[\r\n]*\s+/mu", '$1>', $html);
//$html = preg_replace("/^(.*)>[\r\n]*\s+/mu", '$1>', $html);
return $html;
}