Make getTextContent() work