Skip to content

Commit

Permalink
chore: fix rss!!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
chihuo2104 committed Nov 11, 2023
1 parent 21ac3c5 commit 851062f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/routes/feed/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ export default defineEventHandler(async (event) => {
`
res.posts.forEach(ele => {
// in-browser XML Broken fix
ele.title = ele.title.replaceAll("&", "[And]")
ele.desc = ele.desc.replaceAll("&", "[And]")
ele.author = ele.desc.replaceAll("&", "[And]")
ele.title = ele.title.replace(/&/g, "[And]")
ele.desc = ele.desc.replace(/&/g, "[And]")
ele.author = ele.desc.replace(/&/g, "[And]")
resp += `
<entry>
<title>${ele.title}</title>
Expand Down

0 comments on commit 851062f

Please sign in to comment.