/** * Return the display value of this form field as a DOM Node. * @param DOMNode $node * @param I2CE_Template $template * @return DOMNode */ public function getDisplayNode($node, $template) { $text = explode("\n", $this->getDisplayValue()); if (count($text) < 2) { return parent::getDisplayNode($node, $template); } else { $node = $template->createElement("span", array('class' => 'string_mline')); foreach ($text as $line) { if (!empty($line)) { $node->appendChild($template->createTextNode($line)); $node->appendChild($template->createElement("br")); } } return $node; } }