Update odf.php

This commit is contained in:
Laurent Destailleur 2023-03-26 15:22:12 +02:00 committed by GitHub
parent e1c56650eb
commit 46a8b5d9cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ class Odf
$value = html_entity_decode($value, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401);
// fix breaklines.
$value = preg_replace('/<[ ]*br[ ]*\/?>/', "<br />", $value);
$value = preg_replace('/<br\s*\/?>/', "<br />", $value);
$convertedValue = $value;
// Check if the value includes html tags