rem: theSelection = theSelection.replace(/&amp\;/ig, '&'); 
add: theSelection = theSelection.replace(/&amp\;/ig, '&'); theSelection = theSelection.replace(/&nbsp\;/ig, ' '); 
context: function addquote(post_id, username){	var message_name = 'message_' + post_id;	var theSelection = '';	var divarea = false;	if (document.all)	{		divarea = document.all[message_name];	}	else	{		divarea = document.getElementById(message_name);	}	// Get text selection - not only the post content :(	if (window.getSelection)	{		theSelection = window.getSelection().toString();	}	else if (document.getSelection)	{		theSelection = document.getSelection();	}	else if (document.selection)	{		theSelection = document.selection.createRange().text;	}	if (theSelection == '' || typeof theSelection == 'undefined' || theSelection == null)	{		if (divarea.innerHTML)		{			theSelection = divarea.innerHTML.replace(/<br>/ig, '\n');			theSelection = theSelection.replace(/<br\/>/ig, '\n');			theSelection = theSelection.replace(/&lt\;/ig, '<');			theSelection = theSelection.replace(/&gt\;/ig, '>');			theSelection = theSelection.replace(/&amp\;/ig, '&');					}		else if (document.all)		{			theSelection = divarea.innerText;		}		else if (divarea.textContent)		{			theSelection = divarea.textContent;		}		else if (divarea.firstChild.nodeValue)		{			theSelection = divarea.firstChild.nodeValue;		}	}	if (theSelection)	{		insert_text('[quote="' + username + '"]' + theSelection + '[/quote]');	}	return;}
meta: 2692	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2692/308ef4ebc2c0fc2bf5902a881f023b94f8cf4563/editor.js/buggy/styles/prosilver/template/editor.js