Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cb remove script tags from html
var bodytext = '';
var m = value.data.match(/<body[^>]*>([^<]*(?:(?!<\/?body)<[^<]*)*)<\/body\s*>/i);
if (m) bodytext = m[1];
console.log(bodytext)
send(0, bodytext);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.