angular-sanitize.js in your HTML:
<script src="angular.js"> <script src="angular-sanitize.js">
You can download this file from the following places:
bower install angular-sanitize@X.Y.Z
where X.Y.Z is the AngularJS version you are running.
Then load the module in your application by adding it as a dependent module:
With that you're ready to get started!
ngSanitize module provides functionality to sanitize HTML.
$sanitize for usage.
Finds links in text input and turns them into html links. Supports
Sanitizes an html string by stripping all potentially dangerous tokens.