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:
parent
b1187cbe4c
commit
c33b770b2e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user