Fix invalid feed characters #31

Merged
olaven merged 3 commits from fix-bad-feed-characters into main 2024-04-14 10:16:00 +00:00

3 Commits

Author SHA1 Message Date
Olav Sundfør c33264f601
Update routes/api/feeds/[seriesId].ts 2024-04-14 12:14:10 +02:00
Olav Sundfør 8db94b2710
Update routes/api/feeds/[seriesId].ts 2024-04-14 12:14:06 +02:00
olaven ed0e0b7ab1 Fix invalid feed characters
This PR fixes a (sneaky) bug introduced in #25.
XML strings were stringified before being returned to the client, producing invalid XML ("'<></>'" over "<></>").
This PR changes the code such that only JSON responses are stringified.
2024-04-14 12:11:25 +02:00