Update transform.Unmarshal.md (#2105)

Fixes example to use correct method to fetch remote XML.
This commit is contained in:
Andrew Theken authored and GitHub committed 2023-06-16 10:54:43 -07:00
1 parent 92657177a4
commit 2652da8d41
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ To get the contents of `<title>` 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>