Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="ngSanitize throws error when trying to sanitize a Number" />
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-app="sanitizeTest">
  <div ng-controller="main">
    
    <h1>ngSanitize w/ Number:</h1>
    <p ng-bind-html="i_am_number"></p>
    
    <hr />
    
    <h1>ngSanitize w/ String:</h1>
    <p ng-bind-html="i_am_string"></p>
  
  </div>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.14/angular-sanitize.js"></script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
chiefypro
0viewers