I am trying to trim the text which I get from kendo editor like this.
var html = \" T \"; // This sample text I get from Kendo editor
To easiest way to trim non-breaking spaces from a string is
html.replace(/ /g,' ').trim()