title: How to get selected html text with javascript?
body: <p>I can use the following code to get selected text:</p>
  
  <p><code>text=window.getSelection(); /// for Firefox
  text=document.selection.createRange().text; /// for IE</code></p>
  
  <p>But how can I get the selected Html, which includes the text and html tags? </p>