missing nullcheck.
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
**/
|
||||
angular.module("umbraco.filters").filter('preserveNewLineInHtml', function () {
|
||||
return function (text) {
|
||||
if (!text) {
|
||||
return '';
|
||||
}
|
||||
return text.replace(/\n/g, '<br />');
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user