Skip to content

Commit

Permalink
added soft-hyphen unescape logic
Browse files Browse the repository at this point in the history
  • Loading branch information
SierraGolf committed Apr 28, 2016
1 parent 2f78f0d commit 02c4b10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.tmp_*
node_modules
coverage
.idea
3 changes: 2 additions & 1 deletion helper/htmlEntities.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ var htmlEntities = {
gt: '>',
quot: '"',
amp: '&',
apos: '\''
apos: '\'',
shy: ''
};

module.exports = htmlEntities;
1 change: 1 addition & 0 deletions tests/unescapeHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ test('#unescapeHTML', function(){
equal(unescapeHTML(null), '');
equal(unescapeHTML(undefined), '');
equal(unescapeHTML(5), '5');
equal(unescapeHTML('­'), '');
});

0 comments on commit 02c4b10

Please sign in to comment.