Get styled and non-styled texts on a tree item (#640)