Extract text node

HTML

<div id="result">
</div>

JavaScript

var data =...