public function renderContents($writer) { if ($this->getTextMode() === 'MultiLine') { $writer->write(THttpUtility::htmlEncode($this->getText())); } }