From 2c0f7ffe3af2b2c7c84cea49456728d1ac9b3bfe Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 19 Jan 2011 13:02:50 -0800 Subject: ngdoc should escape content of pre in markdown --- docs/spec/ngdocSpec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/spec/ngdocSpec.js') diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js index cf469063..4abaf0c4 100644 --- a/docs/spec/ngdocSpec.js +++ b/docs/spec/ngdocSpec.js @@ -62,12 +62,12 @@ describe('ngdoc', function(){ toEqual('
<angular/>
'); }); - it('should not replace anything in', function(){
- expect(markdown('bah x\n\nangular.k\n
\n asdf x')).
+ it('should not replace anything in , but escape the html escape the content', function(){
+ expect(markdown('bah x\n\nangular.k\n
\n asdf x')).
toEqual(
'bah x
' +
'\n' +
- 'angular.k\n' +
+ '<b>angular</b>.k\n' +
'' +
'asdf x
');
});
--
cgit v1.2.3