Last active
          August 28, 2020 10:08 
        
      - 
      
 - 
        
Save vikrant2mahajan/016f4852cb4a6db04fba to your computer and use it in GitHub Desktop.  
    Angular sanitize safe HTML filter to user with angular ng-bind-html
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | filter('trust', ['$sce',function($sce) { | |
| return function(value, type) { | |
| return $sce.trustAs(type || 'html', value); | |
| } | |
| }]); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment