Script to render Atom/RSS feeds into XHTML
GitHub repository: coclique/render-feed
Due to XSLT’s removal from browsers, Atom/RSS feeds that made use of XSLT to render a styled page in browsers no longer do so. An alternative is to embed an XHTML <script> in the feed that reads the XML structure of itself and replaces the whole document with a rendered HTML page, which I have been doing for a while:
https://dayli.ly/atom.xmlIt works by including this this snippet anywhere inside the feed document, which loads a 9kB script that does all the things aforementioned:
<script
xmlns="http://www.w3.org/1999/xhtml"
src="https://dayli.ly/built/render-feed.iife.js"
/>
Oh, and it works for RSS too:
https://dayli.ly/rss.xmlExpand/Collapse Metadata
- Idmisc/render-feed
- (Language)
en-US - TitleScript to render Atom/RSS feeds into XHTML
- (Created)
- (Updated)
- Attributes∅
- Banner∅
- Descriptionnone