Returns the contents of the buffer in text form. See Getting Text for a discussion of flattened vs. non-flattened text.