Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

New JSDOM and querySelector elems textContent

const dom = new JSDOM(`<!DOCTYPE html><p>Hello world</p>`);
console.log(dom.window.document.querySelector("p").textContent); // "Hello world"
Source by github.com #
 
PREVIOUS NEXT
Tagged: #New #JSDOM #querySelector #elems #textContent
ADD COMMENT
Topic
Name
8+3 =