namespace Combodo\iTop\Form\Field; use \Str; use \Combodo\iTop\Form\Field\StringField; /** * Description of EmailField * * @author Guillaume Lajarige */ class EmailField extends StringField { public function GetDisplayValue() { $sLabel = Str::pure2html($this->currentValue); if (strlen($sLabel) > 128) { // Truncate the length to 128 characters, by removing the middle $sLabel = substr($sLabel, 0, 100).'.....'.substr($sLabel, -20); } return "currentValue\">$sLabel"; } }