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
If you are using jQuery you can use jQuery.trim()
function removes all newlines, spaces (including non-breaking spaces), and tabs from the beginning and end of the supplied string. source