Gets the selected text.
if the selection contains non-text elements, e.g. an image, those elements are represented as blank character