I have a JavaScript variable which holds an HTML page and due to the setup I need to extract everything between and
and
var temp = document.createElement('DIV'); temp.innerHTML = YourVariable; var liveArea; for (var i = 0; i < temp.childNodes.length; i++) { if (temp.childNodes[i].id == 'LiveArea') { liveArea = temp.childNodes[i]; break; } }