added a sed file to wrap the inside of <content> in a CDATA

master v0.1
Shokara Kou 2022-12-11 19:42:05 -05:00
parent a0e99d882a
commit 6483e52df1
2 changed files with 9 additions and 2 deletions

9
README
View File

@ -10,11 +10,16 @@ from Yoran Heling.
Dependencies
------------
- C99 compatible compiler
- C89 compatible compiler
- POSIX-compliant libc
- a way to pipe the feed data to rssdl
Usage
-----
curl rss_or_atom_url | ./rssdl maildir
curl rss_url | ./rssdl maildir
./rssdl maildir <feed.rss
For atom feeds, pipe the feed through atom_content.sed and then through rssdl.
curl atom_url | sed -f atom_content.sed | ./rssdl maildir
sed -f atom_content.sed feed.atom | ./rssdl maildir

2
atom_content.sed 100644
View File

@ -0,0 +1,2 @@
s,<content.*>,&<![CDATA[,
s,</content>,]]>&,