UNPKG

jstrip

Version:

webpage crawler manipulation

10 lines (7 loc) 228 B
/* This method takes a string and removes any html elements it may have. @params {*} the value to check @returns {string} */ const removehtml = contents => contents.replace(/<(?:.|\n)*?>/gm, ''); module.exports = removehtml;