I'm working with a KENDO control (unimportant i think) that feeds a "script" object to one of its parameters (again also i think unimportant).
What I think IS important, when i fire a popup for the HTML of the scripted object, i see the [DIV] tags:

I want to refactor this as a jQuery object and have come up with this code snippet:
var $templateDiv = $('<div></div>')
.attr({
"id": "template",
"type": "text/kendo-x-tmpl"
})
.text("#:MaximoId#");
alert($templateDiv.html());
however when I 'alert' the html(), I lose the [DIV] tags.
Yes I see that the original example is embedded in a script while mine is not - ignorant as I am, I feel that my final solution doesn't need to wrap a [DIV] inside a script object?
