I\'ve got this situation where I\'m trying to use the tag in my html source:
Try:
var myTemplate = $("#some-id").html().trim(); var myTemplateClone = $(myTemplate);