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

master v0.1
Shokara Kou 6 months ago
parent a0e99d882a
commit 6483e52df1
  1. 9
      README
  2. 2
      atom_content.sed

@ -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

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