{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/hugo/issues/1915","repository_url":"https://api.github.com/repos/spf13/hugo","labels_url":"https://api.github.com/repos/spf13/hugo/issues/1915/labels{/name}","comments_url":"https://api.github.com/repos/spf13/hugo/issues/1915/comments","events_url":"https://api.github.com/repos/spf13/hugo/issues/1915/events","html_url":"https://github.com/spf13/hugo/pull/1915","id":138201268,"number":1915,"title":"Add plainify template function","user":{"login":"bep","id":394382,"avatar_url":"https://avatars.githubusercontent.com/u/394382?v=3","gravatar_id":"","url":"https://api.github.com/users/bep","html_url":"https://github.com/bep","followers_url":"https://api.github.com/users/bep/followers","following_url":"https://api.github.com/users/bep/following{/other_user}","gists_url":"https://api.github.com/users/bep/gists{/gist_id}","starred_url":"https://api.github.com/users/bep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bep/subscriptions","organizations_url":"https://api.github.com/users/bep/orgs","repos_url":"https://api.github.com/users/bep/repos","events_url":"https://api.github.com/users/bep/events{/privacy}","received_events_url":"https://api.github.com/users/bep/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spf13/hugo/labels/status/pending%20review","name":"status/pending review","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-03T14:55:20Z","updated_at":"2016-03-12T03:24:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spf13/hugo/pulls/1915","html_url":"https://github.com/spf13/hugo/pull/1915","diff_url":"https://github.com/spf13/hugo/pull/1915.diff","patch_url":"https://github.com/spf13/hugo/pull/1915.patch"},"body":"To strip away any HTML. May be useful for the .Title in head etc.\n\nPeople may shoot themself in the foot with this, maybe ...\n\nBut if someone wants to merge this, I guess it would be fine.\n\nThe replacement function is pretty fast."},"comment":{"url":"https://api.github.com/repos/spf13/hugo/issues/comments/195650273","html_url":"https://github.com/spf13/hugo/pull/1915#issuecomment-195650273","issue_url":"https://api.github.com/repos/spf13/hugo/issues/1915","id":195650273,"user":{"login":"moorereason","id":131056,"avatar_url":"https://avatars.githubusercontent.com/u/131056?v=3","gravatar_id":"","url":"https://api.github.com/users/moorereason","html_url":"https://github.com/moorereason","followers_url":"https://api.github.com/users/moorereason/followers","following_url":"https://api.github.com/users/moorereason/following{/other_user}","gists_url":"https://api.github.com/users/moorereason/gists{/gist_id}","starred_url":"https://api.github.com/users/moorereason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorereason/subscriptions","organizations_url":"https://api.github.com/users/moorereason/orgs","repos_url":"https://api.github.com/users/moorereason/repos","events_url":"https://api.github.com/users/moorereason/events{/privacy}","received_events_url":"https://api.github.com/users/moorereason/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T03:24:02Z","updated_at":"2016-03-12T03:24:02Z","body":"Need tests.\r\n\r\nDid some research on what others do.  Django and Jinja2 call this `striptags`, which sounds better than `plainify` to me.\r\n\r\nWhy do you make it \"safe\" (return `template.HTML`)?  If we can't guarantee that the resulting string actually is safe, shouldn't we just return a `string` and let the Go template engine deal with it?  What's the harm in return a `string`?"}}