Skip to content

Instantly share code, notes, and snippets.

@qharlie
Created December 9, 2013 15:21
Show Gist options
  • Save qharlie/7873810 to your computer and use it in GitHub Desktop.
Save qharlie/7873810 to your computer and use it in GitHub Desktop.
myApp.filter('trustAsHtml', function ($sce) {
return function (input) {
return $sce.trustAsHtml(input);
}
})
HTML
<p ng-bind-html="messageHTML | trustAsHtml">
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment