Skip to content

Commit

Permalink
Support for <tr... in options.item
Browse files Browse the repository at this point in the history
  • Loading branch information
niknah committed Mar 31, 2015
1 parent 8c1c6fd commit 9700858
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/templater.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ var Templater = function(list) {
}
}
return null;
} else if (/^tr[\s>]/.exec(item)) {
var table = document.createElement('table');
table.innerHTML = item;
return table.firstChild;
} else if (item.indexOf("<") !== -1) { // Try create html element of list, do not work for tables!!
var div = document.createElement('div');
div.innerHTML = item;
Expand Down

0 comments on commit 9700858

Please sign in to comment.