innerText vs outerText
innerText changes only text within HTML tags, e.g. <div> <p>Change Me</p> </div> p.innerText = “Changed!” Becomes <div> <p>Changed!</p> </div> Whereas outerText: <div> <p>Change Me</p> </div> p.outerText = “Changed!” Becomes <div> Changed! </div>