Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
cb remove script tags from html
var bodytext = '';
var m =<body[^>]*>([^<]*(?:(?!<\/?body)<[^<]*)*)<\/body\s*>/i);
if (m) bodytext = m[1];
send(0, bodytext);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment