Node.js examples for String:HTML String
Removes HTML tags and space characters, numbers and punctuation
/**/*ww w . j a v a 2 s . c o m*/ * Removes HTML tags and space characters, numbers and punctuation. * @param value Value being stripped. * @return {*} */ stripHtml: function(value) { return value.replace(/<.[^<>]*?>/g, ' ').replace(/ | /gi, ' ') .replace(/[0-9.(),;:!?%#$'"_+=\/-]*/g, ''); }