Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cherihung
Created October 2, 2015 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cherihung/a81ef88a39a72b331e67 to your computer and use it in GitHub Desktop.
Save cherihung/a81ef88a39a72b331e67 to your computer and use it in GitHub Desktop.
angular.module('sceTrustfilter', []).filter('html_to_trust', ['$sce', function($sce){
return function(text) {
return $sce.trustAsHtml(text);
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment