get text of paragraph without getting childs code example Example: js get innertext minus the span text document.getElementById("listItem").childNodes[0].nodeValue;