From c56812c109edbac25cd64f3c6df58cc0444c333c Mon Sep 17 00:00:00 2001 From: Martin Angers Date: Thu, 11 Jan 2018 08:48:49 -0500 Subject: [PATCH] fix godoc comment to comply with golint --- manipulation.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manipulation.go b/manipulation.go index ebb4ffe..34eb757 100644 --- a/manipulation.go +++ b/manipulation.go @@ -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)) }