{"action":"closed","issue":{"url":"https://api.github.com/repos/PuerkitoBio/goquery/issues/95","labels_url":"https://api.github.com/repos/PuerkitoBio/goquery/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/PuerkitoBio/goquery/issues/95/comments","events_url":"https://api.github.com/repos/PuerkitoBio/goquery/issues/95/events","html_url":"https://github.com/PuerkitoBio/goquery/issues/95","id":112570534,"number":95,"title":"Inbuilt setText?","user":{"login":"chrisflatley","id":8419367,"avatar_url":"https://avatars.githubusercontent.com/u/8419367?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisflatley","html_url":"https://github.com/chrisflatley","followers_url":"https://api.github.com/users/chrisflatley/followers","following_url":"https://api.github.com/users/chrisflatley/following{/other_user}","gists_url":"https://api.github.com/users/chrisflatley/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisflatley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisflatley/subscriptions","organizations_url":"https://api.github.com/users/chrisflatley/orgs","repos_url":"https://api.github.com/users/chrisflatley/repos","events_url":"https://api.github.com/users/chrisflatley/events{/privacy}","received_events_url":"https://api.github.com/users/chrisflatley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T11:54:50Z","updated_at":"2015-11-11T19:54:23Z","closed_at":"2015-11-11T19:54:23Z","body":"I see there's a Text() and ReplaceWithHtml() function but its there a setText equivalent? I couldn't see it.\r\n\r\nSomething like (apologies... just started using this today) : \r\n\r\n````\r\nfunc (s *Selection) SetText(s *goquery.Selection, text string) *goquery.Selection {\r\n\tfor _, n := range s.Nodes {\r\n\t\ts.ReplaceWithHtml(fmt.Sprintf(\"<%s>%s</%s>\", n.Data, text, n.Data))\r\n\t}\r\n\treturn s\r\n}\r\n````"}}