Skip to content

Instantly share code, notes, and snippets.

@khoand0000
Last active August 29, 2015 14:25
Show Gist options
  • Save khoand0000/397784e1dc60d3d1a4d0 to your computer and use it in GitHub Desktop.
Save khoand0000/397784e1dc60d3d1a4d0 to your computer and use it in GitHub Desktop.
Output html text in angularjs
$scope.content = "<b>bold</b> text";
  • With
<div>{{content}}</div>

will output text content

<b>bold</b> text
  • But with
<div ng-bind-html="content"></div>

will output html content

bold text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment