vendor/assets/javascripts/angular-sanitize.js in angularjs-rails-1.2.0.rc1 vs vendor/assets/javascripts/angular-sanitize.js in angularjs-rails-1.2.0.rc2
- old
+ new
@@ -1,7 +1,7 @@
/**
- * @license AngularJS v1.2.0rc1
+ * @license AngularJS v1.2.0-rc.2
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
@@ -9,29 +9,18 @@
/**
* @ngdoc overview
* @name ngSanitize
* @description
- *
- * The `ngSanitize` module provides functionality to sanitize HTML.
- *
- * # Installation
- * As a separate module, it must be loaded after Angular core is loaded; otherwise, an 'Uncaught Error:
- * No module: ngSanitize' runtime error will occur.
*
- * <pre>
- * <script src="angular.js"></script>
- * <script src="angular-sanitize.js"></script>
- * </pre>
+ * # ngSanitize
*
- * # Usage
- * To make sure the module is available to your application, declare it as a dependency of you application
- * module.
+ * The `ngSanitize` module provides functionality to sanitize HTML.
*
- * <pre>
- * angular.module('app', ['ngSanitize']);
- * </pre>
+ * {@installModule sanitize}
+ *
+ * See {@link ngSanitize.$sanitize `$sanitize`} for usage.
*/
/*
* HTML Parser By Misko Hevery (misko@hevery.com)
* based on: HTML Parser By John Resig (ejohn.org)
@@ -427,11 +416,13 @@
* @ngdoc filter
* @name ngSanitize.filter:linky
* @function
*
* @description
- * Finds links in text input and turns them into html links. Supports http/https/ftp/mailto and
- * plain email address links.
+ * Finds links in text input and turns them into html links. Supports http/https/ftp/mailto and
+ * plain email address links.
+ *
+ * Requires the {@link ngSanitize `ngSanitize`} module to be installed.
*
* @param {string} text Input text.
* @param {string} target Window (_blank|_self|_parent|_top) or named frame to open links in.
* @returns {string} Html-linkified text.
*