Anonymous
public javascript v1 · immutable<html> <head> <title>Test!</title> </head> <body onload="javascript:test();"> <script> function test() { content = document.getElementById("content").innerHTML; alert(content); alert(content.match(/<script>(?!<\/script>)(.*)<\/script>/i).length); } </script> <div id="content"> <script> var foo = "woof"; </script> </div> </body></html>