Update to Angular 1.1.4

This commit is contained in:
Colin Frei 2013-04-07 11:37:21 +02:00
parent 72a485d6e8
commit f5fc1369ad
585 changed files with 48055 additions and 3041 deletions

18
lib/angular/docs/partials/api/ngSanitize.$sanitize.html Normal file → Executable file
View file

@ -2,7 +2,7 @@
<span class="hint">(service in module <code ng:non-bindable="">ngSanitize</code>
)</span>
</h1>
<div><h2 id="Description">Description</h2>
<div><a href="http://github.com/angular/angular.js/edit/master/src/ngSanitize/sanitize.js" class="improve-docs btn btn-primary">Improve this doc</a><h2 id="Description">Description</h2>
<div class="description"><p>The input is sanitized by parsing the html into tokens. All safe tokens (from a whitelist) are
then serialized back to properly escaped html string. This means that no unsafe input can make
it into the returned string, however, since our parser is more strict than a typical browser
@ -20,10 +20,10 @@ browser, won't make it through the sanitizer.</p></div>
</div>
<h2 id="Example">Example</h2>
<div class="example"><h4>Source</h4>
<div source-edit="ngSanitize" source-edit-deps="angular.js script.js" source-edit-html="index.html-227" source-edit-css="" source-edit-js="script.js-226" source-edit-unit="" source-edit-scenario="scenario.js-228"></div>
<div source-edit="ngSanitize" source-edit-deps="angular.js script.js" source-edit-html="index.html-230" source-edit-css="" source-edit-js="script.js-229" source-edit-unit="" source-edit-scenario="scenario.js-231"></div>
<div class="tabbable"><div class="tab-pane" title="index.html">
<pre class="prettyprint linenums" ng-set-text="index.html-227" ng-html-wrap="ngSanitize angular.js script.js"></pre>
<script type="text/ng-template" id="index.html-227">
<pre class="prettyprint linenums" ng-set-text="index.html-230" ng-html-wrap="ngSanitize angular.js script.js"></pre>
<script type="text/ng-template" id="index.html-230">
<div ng-controller="Ctrl">
Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
@ -57,8 +57,8 @@ browser, won't make it through the sanitizer.</p></div>
</script>
</div>
<div class="tab-pane" title="script.js">
<pre class="prettyprint linenums" ng-set-text="script.js-226"></pre>
<script type="text/ng-template" id="script.js-226">
<pre class="prettyprint linenums" ng-set-text="script.js-229"></pre>
<script type="text/ng-template" id="script.js-229">
function Ctrl($scope) {
$scope.snippet =
'<p style="color:blue">an html\n' +
@ -68,8 +68,8 @@ browser, won't make it through the sanitizer.</p></div>
</script>
</div>
<div class="tab-pane" title="End to end test">
<pre class="prettyprint linenums" ng-set-text="scenario.js-228"></pre>
<script type="text/ng-template" id="scenario.js-228">
<pre class="prettyprint linenums" ng-set-text="scenario.js-231"></pre>
<script type="text/ng-template" id="scenario.js-231">
it('should sanitize the html snippet ', function() {
expect(using('#html-filter').element('div').html()).
toBe('<p>an html\n<em>click here</em>\nsnippet</p>');
@ -98,5 +98,5 @@ browser, won't make it through the sanitizer.</p></div>
</script>
</div>
</div><h4>Demo</h4>
<div class="well doc-example-live" ng-embed-app="ngSanitize" ng-set-html="index.html-227" ng-eval-javascript="script.js-226"></div></div>
<div class="well doc-example-live animator-container" ng-embed-app="ngSanitize" ng-set-html="index.html-230" ng-eval-javascript="script.js-229"></div></div>
</div>