I'm simply selecting some text on my iPhone, waiting for the draggable
box to appear (along with the Copy button) and then tapping the
Bookmark icon in MobileSafari and selecting the bookmarklet of my
choice.
To grab the currently selected text I'm doing something like this:
encodeURIComponent( window.getSelection ? window.getSelection()+'' :
(document.getSelection) ? document.getSelection()+'' :
(document.selection ? document.selection.createRange().text+'' : 0) )
Does anyone have any experience with this?