title: Getting selected text via Safari Extension
body: <p>I started learning how to program a Safari extension, and unfortunately Apple's Developer Reference pages on that are not really detailed. Hence my question:</p>
  
  <p>Anyone knows how I can pass the text selected by a user in a variable? My extension is a context menu element that needs to use that text the user selects from any webpage.</p>
  
  <p>Thank you very much for your help :)</p>