diff options
Diffstat (limited to 'docs/components/angular-bootstrap/bootstrap-prettify.js')
| -rw-r--r-- | docs/components/angular-bootstrap/bootstrap-prettify.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/components/angular-bootstrap/bootstrap-prettify.js b/docs/components/angular-bootstrap/bootstrap-prettify.js index f1c3fccb..dc2a34e2 100644 --- a/docs/components/angular-bootstrap/bootstrap-prettify.js +++ b/docs/components/angular-bootstrap/bootstrap-prettify.js @@ -96,9 +96,12 @@ directive.code = function() { directive.prettyprint = ['reindentCode', function(reindentCode) { return { restrict: 'C', - terminal: true, compile: function(element) { - element.html(window.prettyPrintOne(reindentCode(element.html()), undefined, true)); + var html = element.html(); + //ensure that angular won't compile {{ curly }} values + html = html.replace(/\{\{/g, '<span>{{</span>') + .replace(/\}\}/g, '<span>}}</span>'); + element.html(window.prettyPrintOne(reindentCode(html), undefined, true)); } }; }]; |
