Inline comment

This commit is contained in:
Thomas Negre 2022-11-16 12:07:07 +01:00
parent b0548213b9
commit a00331c478

View File

@ -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, ['<br>', '<strong>', '<b>', '<i>', '<em>', '<u>', '<s>', '<sub>', '<sup>', '<span>']);
// Default styles for strong/b, i/em, u, s, sub & sup