From 46a8b5d9cb7c4d813fc4cc7e94aaa22e0bd2d842 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 26 Mar 2023 15:22:12 +0200 Subject: [PATCH] Update odf.php --- htdocs/includes/odtphp/odf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/odtphp/odf.php b/htdocs/includes/odtphp/odf.php index 1d097e95975..e3160b880f9 100644 --- a/htdocs/includes/odtphp/odf.php +++ b/htdocs/includes/odtphp/odf.php @@ -168,7 +168,7 @@ class Odf $value = html_entity_decode($value, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401); // fix breaklines. - $value = preg_replace('/<[ ]*br[ ]*\/?>/', "
", $value); + $value = preg_replace('//', "
", $value); $convertedValue = $value; // Check if the value includes html tags