codimd/utils/string.js

8 lines
122 B
JavaScript

'use strict'
function stripTags(s) {
return s.replace(RegExp(`</?[^<>]*>`, 'gi'), '')
}
exports.stripTags = stripTags