summaryrefslogtreecommitdiff
path: root/scripts/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions.php')
-rw-r--r--scripts/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/functions.php b/scripts/functions.php
index 016b581..9b72803 100644
--- a/scripts/functions.php
+++ b/scripts/functions.php
@@ -279,7 +279,7 @@ function postToAtomEntry(array $post, string $hostname): string
"https://$hostname{$post['url']}",
$post['author'],
"{$post['date']}T12:00:00Z",
- $post['html'],
+ htmlspecialchars($post['html']),
);
}
@@ -308,7 +308,7 @@ function buildAtomEntry(string $title, string $href, string $author, string $dat
<author><name>$author</name></author>
<published>$date</published>
<updated>$date</updated>
- <content>![CDATA[$content]]</content>
+ <content type="html">$content</content>
</entry>
EOF_STR;
}