diff --git a/htdocs/core/class/doleditor.class.php b/htdocs/core/class/doleditor.class.php index b8f63e352fc..302e60bfc9b 100644 --- a/htdocs/core/class/doleditor.class.php +++ b/htdocs/core/class/doleditor.class.php @@ -160,6 +160,8 @@ class DolEditor $found = 0; $out = ''; + $this->content = ($this->content ?? ''); // to avoid htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated + if (in_array($this->tool, array('textarea', 'ckeditor'))) { $found = 1; //$out.= '