MCPcopy Create free account
hub / github.com/GuyARoss/orbit / innerHTML

Function innerHTML

examples/basic-react/orbitgen/orb_http.go:98–100  ·  view source on GitHub ↗

innerHTML is a utility function that assists with the parsing the content of html tags it does this by returning the subset of the two provided strings "subStart" & "subEnd"

(str string, subStart string, subEnd string)

Source from the content-addressed store, hash-verified

96// innerHTML is a utility function that assists with the parsing the content of html tags
97// it does this by returning the subset of the two provided strings "subStart" & "subEnd"
98func innerHTML(str string, subStart string, subEnd string) string {
99 return strings.Split(strings.Join(strings.Split(str, subStart)[1:], ""), subEnd)[0]
100}
101// defaultHTMLDoc builds a standard html doc for orbit that also verifies the public directory
102// if override data exits, then it will use that as a base for the HTML document
103func defaultHTMLDoc(override string) *htmlDoc {

Callers 3

TestInnerHTMLFunction · 0.70
buildHTMLPagesFunction · 0.70
defaultHTMLDocFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestInnerHTMLFunction · 0.56