You can try something like this, and give id to your element
JavascriptExecutor executor = (JavascriptExecutor)driver;
String text= executor.executeScript("document.getElementById('someID').innerHTML");
as earlier @Andreas mention be more descriptive. Good luck. Hope it helps
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…