Merge pull request #2018 from AndyButland/u4-4090
Fixes U4-4090 - by preserved line breaks in property descriptions...
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* @ngdoc filter
|
||||
* @name umbraco.filters.preserveNewLineInHtml
|
||||
* @description
|
||||
* Used when rendering a string as HTML (i.e. with ng-bind-html) to convert line-breaks to <br /> tags
|
||||
**/
|
||||
angular.module("umbraco.filters").filter('preserveNewLineInHtml', function () {
|
||||
return function (text) {
|
||||
return text.replace(/\n/g, '<br />');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<span ng-if="property.validation.mandatory">
|
||||
<strong class="umb-control-required">*</strong>
|
||||
</span>
|
||||
<small ng-bind-html="property.description"></small>
|
||||
<small ng-bind-html="property.description | preserveNewLineInHtml"></small>
|
||||
</label>
|
||||
|
||||
<div class="controls" ng-transclude>
|
||||
|
||||
Reference in New Issue
Block a user