UNPKG

jstrip

Version:

webpage crawler manipulation

12 lines (9 loc) 241 B
/* This method takes a string and removes any html elements it may have. @params {*} the value to check @returns {string} */ const replace = (contents, regex, wth) => { return contents.replace(regex, wth); }; module.exports = replace;