Beispiel #1
0
 function sanitize($value)
 {
     if ($this->control->maxlength && NString::length($value) > $this->control->maxlength) {
         $value = iconv_substr($value, 0, $this->control->maxlength, 'UTF-8');
     }
     return NString::trim(strtr($value, "\r\n", '  '));
 }