Skip to content

Commit d0bb9bb

Browse files
committed
stripTags strips things that aren't tags
1 parent c1f7b1f commit d0bb9bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/stripTags.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ test('#stripTags', function() {
66
equal(stripTags('a <a href="#">link</a>'), 'a link');
77
equal(stripTags('a <a href="#">link</a><script>alert("hello world!")</scr'+'ipt>'), 'a linkalert("hello world!")');
88
equal(stripTags('<html><body>hello world</body></html>'), 'hello world');
9+
equal(stripTags('I have < I want, but that is > nothing'), 'I have < than I want, but that is > nothing');
910
equal(stripTags(123), '123');
1011
equal(stripTags(''), '');
1112
equal(stripTags(null), '');

0 commit comments

Comments
 (0)