diff options
-rw-r--r-- | demos/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/index.html b/demos/index.html index 0dd3ff796..ee07fb2ea 100644 --- a/demos/index.html +++ b/demos/index.html @@ -153,7 +153,7 @@ function loadDemo(path) { var directory = path.match(/([^\/]+)\/[^\/\.]+\.html$/)[1]; $.get(path, function(data) { - var source = data.match(/<script.*>.*<\/script>/ig)[1]; + var source = data; data = data.replace(/<script.*>.*<\/script>/ig,""); // Remove script tags data = data.replace(/<\/?link.*>/ig,""); //Remove link tags data = data.replace(/<\/?html.*>/ig,""); //Remove html tag |