mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
6e69cfbca4
commit
c5892fc17e
@ -32,7 +32,7 @@ module.exports = function(RED) {
|
||||
var tag = node.tag;
|
||||
if (msg.hasOwnProperty("select")) { tag = node.tag || msg.select; }
|
||||
try {
|
||||
var $ = cheerio.load(value,null,false);
|
||||
var $ = cheerio.load(value);
|
||||
var pay = [];
|
||||
var count = 0;
|
||||
$(tag).each(function() {
|
||||
|
@ -68,7 +68,9 @@ describe('HTML node', function() {
|
||||
done(err)
|
||||
}
|
||||
});
|
||||
n1.receive({payload:data,topic:"bar",select:"h1"});
|
||||
// include 'body' in the select to verify we're in document mode
|
||||
// for the parser. See https://github.com/node-red/node-red/issues/3079
|
||||
n1.receive({payload:data,topic:"bar",select:"body h1"});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user