MCPcopy
hub / github.com/PuerkitoBio/goquery / WrapInnerNode

Method WrapInnerNode

manipulation.go:542–544  ·  view source on GitHub ↗

WrapInnerNode wraps an HTML structure, matched by the given selector, around the content of element in the set of matched elements. The matched child is cloned before being inserted into the document. It returns the original set of elements.

(n *html.Node)

Source from the content-addressed store, hash-verified

540//
541// It returns the original set of elements.
542func (s *Selection) WrapInnerNode(n *html.Node) *Selection {
543 return s.wrapInnerNodes(n)
544}
545
546func (s *Selection) wrapInnerNodes(ns ...*html.Node) *Selection {
547 if len(ns) == 0 {

Callers

nothing calls this directly

Calls 1

wrapInnerNodesMethod · 0.95

Tested by

no test coverage detected