Sunday, 19 March 2017

how to get doctype with cheerio

I would like to get doctype with cheerio. Is it possible to do? I have

var createDOM = function(dom) {
  $ = cheerio.load(dom);
  return $('body');
}

and do $('doctype') but it is not work here. Any idea?



via Vahe Akhsakhalyan

No comments:

Post a Comment