PHP DOMnode objects contain a textContent and nodeValue attributes which both seem to be the innerHTML of the node.
nodeValue: The value of this node, depending on its type
textContent: This attribute returns the text content of this node and its descendants.
What is the difference between these two properties? When is it proper to use one instead of the other?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…