Skip to content

Commit

Permalink
fixes for trustAsHtml
Browse files Browse the repository at this point in the history
for label.html it always was trusting it and form labelfor.html it was
always not trusting it.
  • Loading branch information
jcompagner committed Nov 29, 2016
1 parent 661d5ad commit b43dc32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion label/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ angular.module('bootstrapcomponentsLabel',['servoy'])
restrict: 'E',
scope: {
model: "=svyModel",
handlers: "=svyHandlers"
handlers: "=svyHandlers",
servoyApi: "=svyServoyapi"
},
controller: function($scope, $element, $attrs) {
var templateUrl = $scope.model.labelFor ? "bootstrapcomponents/label/labelfor.html" : "bootstrapcomponents/label/label.html";
Expand Down
2 changes: 1 addition & 1 deletion label/labelfor.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<label class='bts-label' for='{{model.labelFor}}'
ng-class="model.styleClass"
ng-bind-html='model.text| htmlFilter'
ng-bind-html='model.text| htmlFilter| trustAsHtml:servoyApi.trustAsHtml()'
ng-if='model.visible'
sablo-tabseq='model.tabSeq'
id="{{::model.svyMarkupId}}"
Expand Down

0 comments on commit b43dc32

Please sign in to comment.