Skip to content

Instantly share code, notes, and snippets.

@bitflower
Forked from nelsonpecora/trusthtml.js
Last active August 29, 2015 14:13
Show Gist options
  • Save bitflower/1709411653c66554afae to your computer and use it in GitHub Desktop.
Save bitflower/1709411653c66554afae to your computer and use it in GitHub Desktop.
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