Suppose I have a DOMString which is of kind
"<!DOCTYPE html><html><div id="d1"><p>foo</p></div></html>"
and I want to store the paragraph content in a variable (say, pContent), such that
pContent == "foo"
What do you suggest me? I can use only javascript-code (and libraries entirely written in .js if needed).
foo