Skip to content

Instantly share code, notes, and snippets.

@c0bra
Created November 20, 2013 17:14
Show Gist options
  • Select an option

  • Save c0bra/7567068 to your computer and use it in GitHub Desktop.

Select an option

Save c0bra/7567068 to your computer and use it in GitHub Desktop.
/* js */
var app = angular.module('plunker', ['ngSanitize']);
app.controller('MainCtrl', function($scope, $sce) {
$scope.data = {};
$scope.val = $sce.trustAsHtml('🏠');
});
/* html */
<body ng-controller="MainCtrl">
<h4> Why symbols are different? </h4>
<span>Symbol: 🏠</span>
<br />
Symbol: <span ng-bind-html="val"></span><br />
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment