SetText sets the content of each element in the selection to specified content. The provided text string is escaped.
(text string)
| 333 | // SetText sets the content of each element in the selection to specified content. |
| 334 | // The provided text string is escaped. |
| 335 | func (s *Selection) SetText(text string) *Selection { |
| 336 | return s.SetHtml(html.EscapeString(text)) |
| 337 | } |
| 338 | |
| 339 | // Unwrap removes the parents of the set of matched elements, leaving the matched |
| 340 | // elements (and their siblings, if any) in their place. |