rem: value_of('<div><script type="text/javascript"> window.stripScriptsSpec = 42; </script></div>'.stripScripts(true)).should_be('<div></div>'); 
add: value_of('<div><script type="text/javascript"> var stripScriptsSpec = 42; </script></div>'.stripScripts(true)).should_be('<div></div>'); 
context: 	'should `stripScripts` strip all script tags from a string and optionally execute them': function(){		value_of('<div><script type="text/javascript" src="file.js"></script></div>'.stripScripts()).should_be('<div></div>');		value_of('<div><script type="text/javascript"> window.stripScriptsSpec = 42; </script></div>'.stripScripts(true)).should_be('<div></div>');		value_of(window.stripScriptsSpec).should_be(42);		value_of('<div><script>\n// <!--\nwindow.stripScriptsSpec = 24;\n//-->\n</script></div>'.stripScripts(true)).should_be('<div></div>');		value_of(window.stripScriptsSpec).should_be(24);		value_of('<div><script>\n/*<![CDATA[*/\nwindow.stripScriptsSpec = 4242;\n/*]]>*/</script></div>'.stripScripts(true)).should_be('<div></div>');		value_of(window.stripScriptsSpec).should_be(4242);	}
meta: 7826	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7826/d0f731fe9258cd707a3f015032db6667a3ed9653/String.js/buggy/Specs/Native/String.js