Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #167 from jugglinmike/node-render

Fix bug in HTML rendering in Node.js
  • Loading branch information...
commit a8ee9d881b82882e11c122854cf2ceb1a7a4615e 2 parents 284fe4a + d60cf12
@tbranyen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 node/index.js
View
4 node/index.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.