Post title is already escaped.
Use builder to construct the feed, with proper link rels and types.

Based on feed.atom.builder from Mike Williams' blog:
https://github.com/mdub/dogbiscuit.org/blob/master/src/mdub/weblog/feed.atom.builder
Add post content to the feed.
Put the feed uri in canonical form.