Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
test($sanitize): add a test to prove that html comments are being str…
Browse files Browse the repository at this point in the history
…ipped

Closes #12524
  • Loading branch information
IgorMinar authored and petebacondarwin committed Sep 18, 2015
1 parent a654bdf commit 86e8088
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/ngSanitize/sanitizeSpec.js
Expand Up @@ -228,6 +228,11 @@ describe('HTML', function() {
});
}

it('should strip html comments', function() {
expectHTML('<!-- comment 1 --><p>text1<!-- comment 2 -->text2</p><!-- comment 3 -->')
.toEqual('<p>text1text2</p>');
});


describe('SVG support', function() {

Expand Down

0 comments on commit 86e8088

Please sign in to comment.