I try to create script "<script type='text/html'></script>" tag and put html template inside it using the following code.
$("<script type='text/html'></script>").attr("id", "MyTemplate").text
(data);
data contains html template string. eg "<div>${MyData}</data>"
It throws exception when calling text() method in IE8. It works fine
in FireFox 3.5.
Is there any solution that can work with almost all types of browsers.
Thanks,
ant.

