Fix bug in getCleanText

Should behave like text_content(), not include tail