Skip to content

Commit 9ed2c79

Browse files
authored
Merge pull request #1035 from peviitor-ro/fix/job-title-symbols
fix: job title symbols decoded to readable text
2 parents 254faea + f0002de commit 9ed2c79

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/Results.jsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ const Results = () => {
6262
window.scrollTo({ top: 0, behavior: "smooth" });
6363
}
6464

65+
function handleStringDecode(str) {
66+
if (!str) return "";
67+
const parser = new DOMParser();
68+
const decodedString = parser.parseFromString(str, "text/html").body
69+
.textContent;
70+
return decodedString;
71+
}
72+
6573
return (
6674
<div>
6775
{loading ? (
@@ -86,7 +94,7 @@ const Results = () => {
8694
company={company}
8795
county={county}
8896
job_link={job_link}
89-
job_title={job_title}
97+
job_title={handleStringDecode(job_title)}
9098
remote={remote}
9199
/>
92100
)

0 commit comments

Comments
 (0)