Skip to content

Commit dc2a970

Browse files
committed
added shy unescape logic
1 parent 2f78f0d commit dc2a970

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.tmp_*
55
node_modules
66
coverage
7+
.idea

helper/htmlEntities.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ var htmlEntities = {
1313
gt: '>',
1414
quot: '"',
1515
amp: '&',
16-
apos: '\''
16+
apos: '\'',
17+
shy: ''
1718
};
1819

1920
module.exports = htmlEntities;

tests/unescapeHTML.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ test('#unescapeHTML', function(){
2828
equal(unescapeHTML(null), '');
2929
equal(unescapeHTML(undefined), '');
3030
equal(unescapeHTML(5), '5');
31+
equal(unescapeHTML('­'), '');
3132
});

0 commit comments

Comments
 (0)