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:
* fix:Incomplete string escaping or encoding #709
add additional methods to extracts blogs' text content within paragraph tags'.And tested.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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: