ncarlier / feedpushr

A simple feed aggregator daemon with sugar on top.
GNU General Public License v3.0
334 stars 25 forks source link

How to configure webhooks with Gotify ? #80

Open spysir opened 1 year ago

spysir commented 1 year ago

It didn't work !

ncarlier commented 1 year ago

Did the content contain quotation marks? If so, you need to escape them by using the escapes functions such as {{ .Content | html }} or {{ .Content | js }} or {{ .Content | urlquery }} (see: https://pkg.go.dev/text/template#hdr-Functions)

StaticRocket commented 6 months ago

A better option in this case would be to filter .Content with {{.Content | printf "%q"}} as this will produce a quoted string with all encapsulated quotes properly escaped.