Function: minibuffer-contents

Return the user input in a minibuffer as a string.
If the current buffer is not a minibuffer, return its entire contents.
(fn)