Fix last <br/> removal cutting off text when rendering a text block [MAILPOET-856]
This commit is contained in:
@@ -166,7 +166,7 @@ class Text {
|
||||
}
|
||||
|
||||
static function removeLastLineBreak($html) {
|
||||
return preg_replace('/(^)?(<br.*?\/?>)+$/i', '', $html);
|
||||
return preg_replace('/(^)?(<br[^>]*?\/?>)+$/i', '', $html);
|
||||
}
|
||||
|
||||
static function insertLineBreak($element) {
|
||||
|
Reference in New Issue
Block a user