2
0
mirror of https://github.com/status-im/codimd.git synced 2025-02-25 11:25:38 +00:00
Raccoon 238bf1cc78
ts: lib/string.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:24 +08:00

4 lines
84 B
TypeScript

export function stripTags(s) {
return s.replace(RegExp('</?[^<>]*>', 'gi'), '')
}