Skip to content

Commit

Permalink
Removed decodeURI call.
Browse files Browse the repository at this point in the history
decodeURI was causing an issue rendering html on screen when '%' character is present in html output. Removed decodeURI call as html is getting rendered correctly.

https://bugzilla.redhat.com/show_bug.cgi?id=1444853
  • Loading branch information
h-kataria committed Apr 26, 2017
1 parent 13d118e commit 9e0cffa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -3,6 +3,6 @@ angular
.controller('SanitizeAndRenderController', ['$sce', function SanitizeAndRenderCtrl($sce) {
var vm = this;
vm.sanitizeRenderHtml = function(str) {
return $sce.trustAsHtml(decodeURI(str));
return $sce.trustAsHtml(str);
};
}]);

0 comments on commit 9e0cffa

Please sign in to comment.