codimd/utils/string.js

8 lines
123 B
JavaScript

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