Improved get_inner_text.