Wrap atom content in CDATA tag
This commit is contained in:
parent
e921fb2d84
commit
a9f13310ab
6
feeds.ts
6
feeds.ts
@ -17,7 +17,9 @@ export function profileAtomFeed(profile: Profile, articles: Article[]) {
|
|||||||
<link href="${article.url}" />
|
<link href="${article.url}" />
|
||||||
<updated>${isoDate(article.updatedAt)}</updated>
|
<updated>${isoDate(article.updatedAt)}</updated>
|
||||||
<summary>${article.summary}</summary>
|
<summary>${article.summary}</summary>
|
||||||
<content type="html">${article.html}</content>
|
<content type="html"><![CDATA[
|
||||||
|
${article.html}
|
||||||
|
]]></content>
|
||||||
</entry>
|
</entry>
|
||||||
`;
|
`;
|
||||||
}).join("\n");
|
}).join("\n");
|
||||||
@ -25,7 +27,7 @@ export function profileAtomFeed(profile: Profile, articles: Article[]) {
|
|||||||
return `
|
return `
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
<title>${profile.name} on Nostr</title>
|
<title>${profile.name} on Nostr (Articles)</title>
|
||||||
<id>${feedId}</id>
|
<id>${feedId}</id>
|
||||||
<updated>${isoDate(lastUpdate)}</updated>
|
<updated>${isoDate(lastUpdate)}</updated>
|
||||||
<icon>${profile.picture}</icon>
|
<icon>${profile.picture}</icon>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user