Skip to content

Commit

Permalink
stripTags strips things that aren't tags
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfalgout committed Jan 7, 2016
1 parent c1f7b1f commit 8ef5989
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/stripTags.js
Expand Up @@ -6,6 +6,7 @@ test('#stripTags', function() {
equal(stripTags('a <a href="#">link</a>'), 'a link');
equal(stripTags('a <a href="#">link</a><script>alert("hello world!")</scr'+'ipt>'), 'a linkalert("hello world!")');
equal(stripTags('<html><body>hello world</body></html>'), 'hello world');
equal(stripTags('I have < I want, but that is > nothing'), 'I have < I want, but that is > nothing');
equal(stripTags(123), '123');
equal(stripTags(''), '');
equal(stripTags(null), '');
Expand Down

0 comments on commit 8ef5989

Please sign in to comment.