diff options
| author | Matias Niemelä | 2013-06-06 01:28:50 -0400 |
|---|---|---|
| committer | Misko Hevery | 2013-06-17 22:00:54 -0700 |
| commit | ef22968810d555f78d3bbf7b5428757690c8cc70 (patch) | |
| tree | 1a19f2649e07406bd1988c4d915deec87073c568 /docs/src/dom.js | |
| parent | 07ef1667db632d0fd75472f30343255edcebf43b (diff) | |
| download | angular.js-ef22968810d555f78d3bbf7b5428757690c8cc70.tar.bz2 | |
feat(ngdocs): support popover, foldouts and foldover annotations
Diffstat (limited to 'docs/src/dom.js')
| -rw-r--r-- | docs/src/dom.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/src/dom.js b/docs/src/dom.js index 94048120..897a1831 100644 --- a/docs/src/dom.js +++ b/docs/src/dom.js @@ -8,7 +8,12 @@ exports.htmlEscape = htmlEscape; ////////////////////////////////////////////////////////// function htmlEscape(text){ - return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); + return text + .replace(/&/g, '&') + .replace(/</g, '<') + .replace(/>/g, '>') + .replace(/\{\{/g, '<span>{{</span>') + .replace(/\}\}/g, '<span>}}</span>'); } |
