Created
May 22, 2014 17:03
-
-
Save nelsonpecora/2c494780f01c96bab2e4 to your computer and use it in GitHub Desktop.
Custom filter to trust all html. WARNING: Use with caution. Don't use when displaying user-created content.
This file contains 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
app.filter('trusthtml', ['$sce', function ($sce) { | |
return function(t) { | |
return $sce.trustAsHtml(t) | |
} | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All HTML :