Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sbouchet authored Oct 13, 2023
1 parent db8c10d commit d78d953
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ func main() {
// replace less than ( not open bracket )
data = strings.Replace(data, " < ", " < ", -1)
// replace #<
data = strings.Replace(data, "#&lt;", "#&amp;lt; ", -1)
data = strings.Replace(data, "#&lt;", "#&amp;lt;", -1)
// replace <-
data = strings.Replace(data, "&lt;-", "&amp;lt;-", -1)


f, err := os.OpenFile("rss.xml", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
Expand Down

0 comments on commit d78d953

Please sign in to comment.