UNPKG

@gameroom/cli

Version:

A command line tool for Gameroom

3 lines (2 loc) 252 B
// module.exports = s => s.replace(/<head[^>]*>((.|[\n\r])*)<\/head>/im, '').replace(/\<.*?\>/g, '').replace(/\n\n/g, ' ').replace(/\n/g, ' ').trim() module.exports = s => s.substring(s.indexOf('<body>') + '<body>'.length, s.indexOf('</body>')).trim()