use a hidden <textarea> for the clipboard pasting and transfer the text into a nice <input>
caveats: it has to be <textarea> and with contenteditable="true"
<div> works too, but that would receive also new-lines and formatting.
<textarea> nicely strips all formatting
<input> doesn't work since it cannot have text content
<input> is used for the UI since it looks like the natural choice
to enter the query
select all the text in the <input> to allow for quick replacement
by the user