protected function readPlainText($text) { $text = parent::readPlainText($text); if (isset($this->Definitions['Abbreviation'])) { foreach ($this->Definitions['Abbreviation'] as $abbreviation => $phrase) { $text = str_replace($abbreviation, '<abbr title="' . $phrase . '">' . $abbreviation . '</abbr>', $text); } } return $text; }