Templates offer way of creating HTML chunks. Options such as HTML encoding and compilation for optimal performance are available.
var inlineTemplate = kendo.template("Hello, #= firstName # #= lastName #");
var inlineData = { firstName: "John", lastName: "Doe" };
$("#inline").html(inlineTemplate(inlineData));Hello, John Doe!var encodingTemplate = kendo.template("HTML tags are encoded as follows: ${ html }");
var encodingData = { html: "<strong>lorem ipsum</strong>" };
$("#encoding").html(encodingTemplate(encodingData));HTML tags are encoded as follows: <strong>lorem ipsum</strong>