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

Commit 86e8088

Browse files
IgorMinarpetebacondarwin
authored andcommitted
test($sanitize): add a test to prove that html comments are being stripped
Closes #12524
1 parent a654bdf commit 86e8088

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/ngSanitize/sanitizeSpec.js

+5
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ describe('HTML', function() {
228228
});
229229
}
230230

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

232237
describe('SVG support', function() {
233238

0 commit comments

Comments
 (0)