/ig,' (newline) ');clipboardData=e.clipboardData||window.clipboardData||e.originalEvent.clipboardData;clipboardData.setData('text/html',text);e.preventDefault();});function getSelectionHtml(){var html="";if(typeof window.getSelection!="undefined"){var sel=window.getSelection();if(sel.rangeCount){var container=document.createElement("div");for(var i=0,len=sel.rangeCount;iScroll to top