{"action":"closed","issue":{"url":"https://api.github.com/repos/segmentio/ksuid/issues/37","repository_url":"https://api.github.com/repos/segmentio/ksuid","labels_url":"https://api.github.com/repos/segmentio/ksuid/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/ksuid/issues/37/comments","events_url":"https://api.github.com/repos/segmentio/ksuid/issues/37/events","html_url":"https://github.com/segmentio/ksuid/issues/37","id":370616989,"node_id":"MDU6SXNzdWUzNzA2MTY5ODk=","number":37,"title":"cmd template should use text/template to avoid escaping","user":{"login":"tmthrgd","id":245984,"node_id":"MDQ6VXNlcjI0NTk4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/245984?v=4","gravatar_id":"","url":"https://api.github.com/users/tmthrgd","html_url":"https://github.com/tmthrgd","followers_url":"https://api.github.com/users/tmthrgd/followers","following_url":"https://api.github.com/users/tmthrgd/following{/other_user}","gists_url":"https://api.github.com/users/tmthrgd/gists{/gist_id}","starred_url":"https://api.github.com/users/tmthrgd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmthrgd/subscriptions","organizations_url":"https://api.github.com/users/tmthrgd/orgs","repos_url":"https://api.github.com/users/tmthrgd/repos","events_url":"https://api.github.com/users/tmthrgd/events{/privacy}","received_events_url":"https://api.github.com/users/tmthrgd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-16T13:38:43Z","updated_at":"2018-10-18T14:38:16Z","closed_at":"2018-10-18T14:38:16Z","author_association":"NONE","body":"The ksuid command uses `html/template` [here](https://github.com/segmentio/ksuid/blob/a39015a56de643f2ddfeb1237299fa562243d910/cmd/ksuid/main.go#L8) instead of `text/template`. `html/template` escapes the output and corrupts it.\r\n\r\nThis is the result of running the ksuid command:\r\n```\r\n$ ksuid -f template -t '{{ .Time }}: {{ .Payload }}' $(ksuid)\r\n2018-10-17 00:04:57 &#43;1030 ACDT: 956449DBD1047A4E0F7963973073EEF2\r\n```\r\n\r\n`&#43;` should be `+`."}}
{"actor":{"display_login":"achille-roussel"}}