Skip to content

Instantly share code, notes, and snippets.

@bossly
Created July 1, 2021 11:50
Show Gist options
  • Save bossly/5e7954dd23e615beaafa2b6df3a1219f to your computer and use it in GitHub Desktop.
Save bossly/5e7954dd23e615beaafa2b6df3a1219f to your computer and use it in GitHub Desktop.
Postma Visualizing RSS feed
var jsonObject = xml2Json(responseBody);
var channel = jsonObject.rss.channel;
var template = `
<ul>
{{#each response}}
<li>
<a href="{{link}}">{{title}}</a>
<sub>{{pubDate}}</sub>
</li>
{{/each}}
</lu>
`;
/* FEED DATA INTO TEMPLATE */
pm.visualizer.set(template, {
response: channel.item
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment