following is a simple and good way to do that -
var s2="";
var htmlInput = "<b>c# <br/> asp.net";
s2 = htmlInput.replace(/<[^>]*?>/g, '');
alert(s2);
this will result s2= "c# asp.net";
when you use editor you may want to compare only editor html
text not with tags.
hope this helps............