We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbadb85 commit 099b947Copy full SHA for 099b947
src/helpers/Helpers.js
@@ -52,6 +52,7 @@ export const scrollElIntoView = (getScrollElFunc, notIntersectingSelector = null
52
53
// https://stackoverflow.com/questions/30661497/xss-prevention-and-innerhtml
54
export const escapeHTML = unsafe_str => {
55
+ if (!unsafe_str) return ''
56
return unsafe_str
57
.replace(/&/g, '&')
58
.replace(/</g, '<')
0 commit comments