examples/view/domtemplate.html
authorAlan Knowles <alan@akbkhome.com>
Wed, 11 Apr 2012 23:42:41 +0000 (07:42 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 11 Apr 2012 23:42:41 +0000 (07:42 +0800)
examples/view/domtemplate.html

index b9fd33c..51fd6fb 100644 (file)
@@ -36,8 +36,8 @@ Roo.onReady(function() {
         ];
     Roo.each(data,  function(r) { tpl.append(Roo.get('body'), r); });
     
-    Roo.get('template-show').appendChild(document.createTextNode(html)); 
-    Roo.get('javascript-show').appendChild(document.createTextNode(
+    Roo.get('template-show').appendChild(Roo.util.Format.htmlDecode(html)); 
+    Roo.get('javascript-show').appendChild(Roo.util.Format.htmlDecode(
         Roo.get('javascript-code').dom.innerHTML
     ));