var Prototype = { //.... ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>', //.... }
May be next code would a little better? var Prototype = { //.... ScriptFragment: '<script[^>]*>(?:<!\\-\\-)?([\\S\\s]*?)(?:\\-\\->)?< \/script>', //.... } and for: evalScripts: function() { return this.extractScripts().map(function(script) { return eval(script) }); }, evalScripts: function() { return this.extractScripts().map(function(script) { return window.eval(script) }); }, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---