"use strict"; (function () { 'use strict'; angular.module('App').filter('paragraph', paragraph); /*@ngInject*/ /** * What is this directive for? * @returns {WIDGET_NAME} */ function paragraph() { return function (text) { text = String(text).trim(); return text.length > 0 ? '
' + text.replace(/[\r\n]+/g, '
') + '
' : null; }; } })();