diff options
| author | Igor Minar | 2010-11-01 16:57:55 -0700 | 
|---|---|---|
| committer | Igor Minar | 2010-11-03 09:47:22 -0700 | 
| commit | 1ba8c2a33a2855b5c56aaaa79f402aa5196cc018 (patch) | |
| tree | eeb22dba97f21ec1e5899ccbc4ca180d7d238817 /docs | |
| parent | 659af29adbd041fbbbaf041ead53266210a61f4e (diff) | |
| download | angular.js-1ba8c2a33a2855b5c56aaaa79f402aa5196cc018.tar.bz2 | |
more documentation for filters
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/collect.js | 6 | ||||
| -rw-r--r-- | docs/filter.template | 2 | 
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/collect.js b/docs/collect.js index a3c2a25c..a7a22a09 100644 --- a/docs/collect.js +++ b/docs/collect.js @@ -88,13 +88,17 @@ function valueTag(doc, name, value) {    doc[name] = value;  } +function escapedHtmlTag(doc, name, value) { +  doc[name] = value.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); +} +  function markdownTag(doc, name, value) {    doc[name] = markdown.toHTML(value);  }  var TAG = {    ngdoc: valueTag, -  example: valueTag, +  example: escapedHtmlTag,    scenario: valueTag,    namespace: valueTag,    css: valueTag, diff --git a/docs/filter.template b/docs/filter.template index 677a8785..f9005782 100644 --- a/docs/filter.template +++ b/docs/filter.template @@ -29,5 +29,5 @@ angular.filter.{{shortName}}({{paramFirst.name}}{{#paramRest}}, {{name}}{{/param  {{{description}}}  <WIKI:SOURCE style="display:block;"> -{{example}} +{{{example}}}  </WIKI:SOURCE>
\ No newline at end of file  | 
