ITADN

Post content in Atom feed is just [object Object]

#249Closeddmit 创建于 2025-03-30
D
dmitcommented
The `<content>` tag of every post in https://matklad.github.io/feed.xml is just this: ```xml <content type="html" xml:base="https://matklad.github.io/2025/03/30/deno-sssr.html">[object Object]</content> ``` I'm guessing `post.content` in https://github.com/matklad/matklad.github.io/blob/4bc318ddbc6311f54b6735e4324b84fcb23937b1/src/templates.tsx#L293 should be `post.content.value`, but unsure if additional escaping is needed since it's inside a `CDATA` inside a `<Raw unsafe />`.
关闭于 2025-03-30 1 条评论