Improve htmlGetNodeText()