Skip to content

Commit d9f188f

Browse files
committed
fix: Enhance contentSnippet processing in Feed component
- Added replacement for HTML encoded en dashes (–) in contentSnippet extraction to improve text readability. - Continued refinement of post descriptions in the Feed component for better clarity.
1 parent 374bed5 commit d9f188f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/feed.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const Feed = () => {
3737
?.replace(/<[^>]*>/g, '') // strip HTML
3838
?.replace(/&#160;/g, ' ') // strip out &#160;
3939
?.replace(/&#8217;/g, "'") // strip out &#8217;
40+
?.replace(/&#8211;/g, '-') // strip out &#8211;
4041
?.trim(),
4142
image: post.querySelector("content")?.getAttribute("url")
4243
}))

0 commit comments

Comments
 (0)