From a00331c4789ed0d5c2039f0b87ff3e0e5b335266 Mon Sep 17 00:00:00 2001 From: Thomas Negre Date: Wed, 16 Nov 2022 12:07:07 +0100 Subject: [PATCH] Inline comment --- htdocs/includes/odtphp/odf.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/includes/odtphp/odf.php b/htdocs/includes/odtphp/odf.php index 9612a4c41a5..a5fb62e7218 100644 --- a/htdocs/includes/odtphp/odf.php +++ b/htdocs/includes/odtphp/odf.php @@ -167,6 +167,7 @@ class Odf // Check if the value includes html tags if ($this->_hasHtmlTag($value) === true) { + // Note: allowing many tags is supported on PHP >7.4 . For older versions, this will strip all HTML tags. $value = strip_tags($value, ['
', '', '', '', '', '', '', '', '', '']); // Default styles for strong/b, i/em, u, s, sub & sup