From 2652da8d413d62c52560d954e58c116d4c751ab4 Mon Sep 17 00:00:00 2001 From: Andrew Theken Date: Fri, 16 Jun 2023 13:54:43 -0400 Subject: [PATCH] Update transform.Unmarshal.md (#2105) Fixes example to use correct method to fetch remote XML. --- content/en/functions/transform.Unmarshal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/functions/transform.Unmarshal.md b/content/en/functions/transform.Unmarshal.md index d238565e2..d20ef1f8e 100644 --- a/content/en/functions/transform.Unmarshal.md +++ b/content/en/functions/transform.Unmarshal.md @@ -61,7 +61,7 @@ To get the contents of `` in the document below, you use `{{ .message.tit The following example lists the items of an RSS feed: ```go-html-template -{{ with resources.Get "https://example.com/rss.xml" | transform.Unmarshal }} +{{ with resources.GetRemote "https://example.com/rss.xml" | transform.Unmarshal }} {{ range .channel.item }} <strong>{{ .title | plainify | htmlUnescape }}</strong><br /> <p>{{ .description | plainify | htmlUnescape }}</p>