minibuffer-contents-no-properties

minibuffer-contents-no-properties is a built-in function in `C source code'.

(minibuffer-contents-no-properties)

Return the user input in a minibuffer as a string, without text-properties.
If the current buffer is not a minibuffer, return its entire contents.