Update to mod enabled version goquery (#8021)

* update to mod enabled version goquery

* manually set appengine new release
This commit is contained in:
Antoine GIRARD 2019-08-29 05:18:42 +02:00 committed by Lunny Xiao
parent cedb285e25
commit 187ae109d0
13 changed files with 149 additions and 30 deletions

View file

@ -270,13 +270,14 @@ func (s *Selection) ReplaceWithNodes(ns ...*html.Node) *Selection {
return s.Remove()
}
// Set the html content of each element in the selection to specified html string.
// SetHtml sets the html content of each element in the selection to
// specified html string.
func (s *Selection) SetHtml(html string) *Selection {
return setHtmlNodes(s, parseHtml(html)...)
}
// Set the content of each element in the selection to specified content. The
// provided text string is escaped.
// SetText sets the content of each element in the selection to specified content.
// The provided text string is escaped.
func (s *Selection) SetText(text string) *Selection {
return s.SetHtml(html.EscapeString(text))
}