lib/helpers/Format.php
function getNtext(): \Closure {
    return function($value, \Mustache_LambdaHelper $helper) {
      if (!isset($value)) return \Yii::$app->formatter->nullDisplay;
      return preg_replace('/\r?\n/', '<br>', HtmlHelper::encode($helper->render($value)));
    };
  }
function getNtext(): \Closure {
    return function($value, \Mustache_LambdaHelper $helper) {
      if (!isset($value)) return \Yii::$app->formatter->nullDisplay;
      return preg_replace('/\r?\n/', '<br>', HtmlHelper::encode($helper->render($value)));
    };
  }
function getNtext ( ) : \ Closure { return function ( $ value , \ Mustache_LambdaHelper $ helper ) { if ( ! isset ( $ value ) ) return \ Yii :: $ app -> formatter -> nullDisplay ; return preg_replace ( '/\r?\n/' , '<br>' , HtmlHelper :: encode ( $ helper -> render ( $ value ) ) ) ; } ; }
Returns a helper function formatting a value as HTML-encoded plain text with newlines converted into breaks.
@return \Closure A function formatting a value as HTML-encoded text with newlines converted into breaks.
Returns a helper function formatting a value as HTML - encoded plain text with newlines converted into breaks .