document.getElementById('element').textContent;
// If you need to target < IE9 then you need to use
document.getElementById('element').innerText;