src code

instance method String#extractScripts

String#extractScripts() → Array

Extracts the content of any script blocks present in the string and returns them as an array of strings.