Using PHP's DOM functions, how do you convert a DOM Node's contents into a string?
<foo>
Blah blah <bar baz="1">bah</bar> blah blah
</foo>
Given foo
as the current context node, how do you get 'Blah blah <bar baz="1">bah</bar> blah blah'
as a string? Using $node->textContent
or $node->nodeValue
just returns the text nodes, not the <bar baz="1">
bits.
Basically, the equivalent of Javascript's innerHTML
property...