Skip to content

Commit

Permalink
updated htmlParser to cache div for html entity unescape
Browse files Browse the repository at this point in the history
  • Loading branch information
mike committed Oct 14, 2014
1 parent e8b382c commit cf7f1e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/postscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ Copyright (c) 2014 Derek Brans, MIT license https://github.com/krux/postscribe/b

var stack = [];

// Cache div element for unescaping html entities
var el = document.createElement('div');

var unescapeHTMLEntities = function(html) {
var el = document.createElement('div');
el.innerHTML = html;

// i.e. and ff differ
Expand Down
Loading

0 comments on commit cf7f1e8

Please sign in to comment.