diff --git a/HTML/QuickForm.php b/HTML/QuickForm.php index a219b15f9..ffa992548 100644 --- a/HTML/QuickForm.php +++ b/HTML/QuickForm.php @@ -1950,7 +1950,7 @@ function exportValues($elementList = null) // …or should be skipped… or CRM_Core_HTMLInputCoder::isSkippedField($fldName) //CRM-17962 - do not encode if element is a wysiwyg editor - or CRM_Utils_Array::value('class', $this->_elements[$key]->_attributes) == 'crm-form-wysiwyg' + or in_array('crm-form-wysiwyg', explode(' ', $this->_elements[$key]->_attributes['class'] ?? [])) ) { // …don’t filter, otherwise filter (else clause below) } else {