mirror of
https://github.com/status-im/codimd.git
synced 2025-02-14 10:16:45 +00:00
ts: lib/string.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
parent
952a1663cc
commit
238bf1cc78
@ -1,7 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
function stripTags (s) {
|
||||
return s.replace(RegExp('</?[^<>]*>', 'gi'), '')
|
||||
}
|
||||
|
||||
exports.stripTags = stripTags
|
3
lib/string.ts
Normal file
3
lib/string.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export function stripTags(s) {
|
||||
return s.replace(RegExp('</?[^<>]*>', 'gi'), '')
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user