Created
November 20, 2013 17:14
-
-
Save c0bra/7567068 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /* 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