<div>
<p>Original content</p>
</div>HTMLElement: outerText property / notebook
HTMLElement: outerText property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<div>Whole element replaced</div><div>
<p>Content inside element replaced</p>
</div>