1// use for nodejs (without window)
2const jsdom = require("jsdom");
3const { JSDOM } = jsdom;
4const { window } = new JSDOM();
5const { document } = (new JSDOM('')).window;
6global.document = document;
7
8const $ = jQuery = require('jquery')(window);
9
10// and here is your jQuery object of your html string
11const html = $("<div/>").append( html );
1const $ = jQuery = require('jquery');
2
3// and here is your jQuery object of your html string
4const html = $("<div/>").append( html );