Permalink
Browse files

Merge pull request #167 from jugglinmike/node-render

Fix bug in HTML rendering in Node.js
  • Loading branch information...
tbranyen committed Sep 29, 2012
2 parents 284fe4a + d60cf12 commit a8ee9d881b82882e11c122854cf2ceb1a7a4615e
Showing with 2 additions and 2 deletions.
  1. +2 −2 node/index.js
View
@@ -99,13 +99,13 @@ var $ = require("cheerio");
// element to replace the innerHTML with.
html: function(root, el) {
var $root = root[0] ? root : $(root);
- $root.html(_.isString(el) ? el : $(el).html());
+ $root.html(_.isString(el) ? el : $.render(el));
},
// Very similar to HTML except this one will appendChild.
append: function(root, el) {
var $root = root[0] ? root : $(root);
- $root.append(_.isString(el) ? el : $(el).html());
+ $root.append(_.isString(el) ? el : $.render(el));
},
when: function(promises) {

0 comments on commit a8ee9d8

Please sign in to comment.