getValue(); if (is_array($value)) { // Don't escape HTML in the note field foreach ($value as &$row) { if (isset($row['note'])) { // Decode any previously encoded HTML entities $row['note'] = html_entity_decode($row['note'], ENT_QUOTES, 'UTF-8'); } } unset($row); } $this->setValue($value); return parent::beforeSave(); } }