textContent property
The textContent
property of the Node
interface represents the text content of the node and its descendants.
Note:
textContent
andHTMLElement.innerText
are easily confused, but the two properties are different in important ways.
Implementation
external String? get textContent;
Implementation
external set textContent(String? value);