You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/containers/blogs/Blogs.js:19
? html
.split("p>")
.filter(el => !el.includes(">"))
.map(el => el.replace("</", ".").replace("<", ""))
// This replaces only the first occurrence of "<".
.join(" ")
: NaN;
}
Steps to reproduce
Expected behavior
Is this responsiveness Issue
NO
Screenshots
No response
Desktop
No response
Smartphones
No response
Additional context
Can be fixed by replacing
.map(el => el.replace("</", ".").replace("<", ""))
with
.map(el => el.replace(/</?/g, "."))
The text was updated successfully, but these errors were encountered:
Describe the bug
src/containers/blogs/Blogs.js:19
? html
.split("p>")
.filter(el => !el.includes(">"))
.map(el => el.replace("</", ".").replace("<", ""))
// This replaces only the first occurrence of "<".
}
Steps to reproduce
Expected behavior
Is this responsiveness Issue
NO
Screenshots
No response
Desktop
No response
Smartphones
No response
Additional context
Can be fixed by replacing
.map(el => el.replace("</", ".").replace("<", ""))
with
.map(el => el.replace(/</?/g, "."))
The text was updated successfully, but these errors were encountered: