UNPKG

chayns-components

Version:

A set of beautiful React components for developing chayns® applications.

14 lines (13 loc) 303 B
const HTML_REGEX = /<[^>]*>/g; const removeHtml = txt => { let text = txt; const tags = text.match(HTML_REGEX); if (Array.isArray(tags)) { tags.forEach(tag => { text = text.replace(tag, ''); }); } return text; }; export default removeHtml; //# sourceMappingURL=removeHtml.js.map