Fix handling of text and bug in get_from_url