Skip to content

Commit

Permalink
Update transform.Unmarshal.md (#2105)
Browse files Browse the repository at this point in the history
Fixes example to use correct method to fetch remote XML.
  • Loading branch information
atheken authored Jun 16, 2023
1 parent 9265717 commit 2652da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/functions/transform.Unmarshal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2652da8

Please sign in to comment.