Skip to content

Commit 356247f

Browse files
authored
fix(util/html): ensure argument is a string (Closes bootstrap-vue#2770) (bootstrap-vue#2775)
Closes: bootstrap-vue#2770
1 parent 6d4cd5f commit 356247f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const stripTagsRegex = /(<([^>]+)>)/gi
22

33
export function stripTags(text = '') {
4-
return text.replace(stripTagsRegex, '')
4+
return String(text).replace(stripTagsRegex, '')
55
}
66

77
export function htmlOrText(innerHTML, textContent) {

0 commit comments

Comments
 (0)