<h1>Example: ngBindHtml</h1>
<p>ngBindHtmlはHTMLタグを省いて表示します。</p>
<div ng-app="myModule">
  <input type="text" ng-model="myName" placeholder="<p>ABC</p>">
  <p ng-bind-html="myName"></p>
</div>
@import "bourbon";

body {
  padding: 1.5rem;
}
View Compiled
//= require angular-sanitize.js
angular.module('myModule', ['ngSanitize']);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js
  2. https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular-sanitize.js