Authentication-Results: mail-b.sr.ht; dkim=pass header.d=si3t.ch header.i=@si3t.ch Received: from si3t.ch (82-65-187-107.subs.proxad.net [82.65.187.107]) by mail-b.sr.ht (Postfix) with ESMTPS id BDF8011EEDB for <~tdarb/shinobi-script@lists.sr.ht>; Thu, 19 May 2022 05:48:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=si3t.ch; s=pubkey; t=1652939278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=eUtdlz2Fd7QyivIiPEoX2c0R3n71bupPR+3p5L0cB/4=; b=XadJtV8j6c98PzK1375/BvXWFGsMa3yWTnl5NfdcqA5S2YIVWTZCrWptf7KrWLlxMJJYCd Ba/SeTflASj2n46ssHnbWjhMYlbu60NCdtrtAkJNiOkkdSgXjeU8a/gS1jksiu03u0QmyP VfYtoLavpBJm+w29wvOEEH07HxfJB/I= Received: from localhost (37-166-76-92.coucou-networks.fr [37.166.76.92]) by si3t.ch (OpenSMTPD) with ESMTPSA id a32a0d43 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <~tdarb/shinobi-script@lists.sr.ht>; Thu, 19 May 2022 07:47:58 +0200 (CEST) Date: Thu, 19 May 2022 07:47:56 +0200 From: prx To: ~tdarb/shinobi-script@lists.sr.ht Subject: switch to ATOM Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-GPG-Key-Server: https://si3t.ch/pub/prx.asc X-GPG-Key-FingerPrint: 6D04 B642 12D9 643D 10C6 72B5 37DE 4F1C CA05 53C8 Hi, I have noticed the description is escaped with sed to avoid errors in case some html-reserved characters are present in the post. However, shinobi script let one write plain text. It's a pity it has to be converted in html then, wrapped in
 AND CDATA tags.

That's why I would suggest to switch to ATOM feed.

=> https://xml2rfc.tools.ietf.org/public/rfc/html/rfc4287.html Atom feed specs

Content and description can be plain text since atom let one specify
type "text".  That means you only need CDATA and the whole plain text is
correctly rendered.  You still have to escape CDATA ending "]]>", but
that was already true with RSS.

That's actually what I do with an awk script :

=> https://si3t.ch/code/atom.awk.tgz atom.awk

Following shinobi script, it is ocnfigured by editing the code, but awk
let one use "-v" flags if preffered.

Regards.

prx