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

Method WrapInner

manipulation.go:497–499  ·  view source on GitHub ↗

WrapInner 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.

(selector string)

Source from the content-addressed store, hash-verified

495//
496// It returns the original set of elements.
497func (s *Selection) WrapInner(selector string) *Selection {
498 return s.WrapInnerMatcher(compileMatcher(selector))
499}
500
501// WrapInnerMatcher wraps an HTML structure, matched by the given selector,
502// around the content of element in the set of matched elements. The matched

Callers 3

TestWrapInnerNoContentFunction · 0.80
TestWrapInnerWithContentFunction · 0.80
TestWrapInnerNoWrapperFunction · 0.80

Calls 2

WrapInnerMatcherMethod · 0.95
compileMatcherFunction · 0.85

Tested by 3

TestWrapInnerNoContentFunction · 0.64
TestWrapInnerWithContentFunction · 0.64
TestWrapInnerNoWrapperFunction · 0.64