framework/i18n/Formatter.php
public function asNtext($value)
    {
        if ($value === null) {
            return $this->nullDisplay;
        }

        return nl2br(Html::encode($value));
    }
public function asNtext($value)
    {
        if ($value === null) {
            return $this->nullDisplay;
        }

        return nl2br(Html::encode($value));
    }
public function asNtext ( $ value ) { if ( $ value === null ) { return $ this -> nullDisplay ; } return nl2br ( Html :: encode ( $ value ) ) ; }
Formats the value as an HTML-encoded plain text with newlines converted into breaks.
@param string $value the value to be formatted.
@return string the formatted result.
Formats the value as an HTML - encoded plain text with newlines converted into breaks .