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)
| 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" |
| 98 | func 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 |
| 103 | func defaultHTMLDoc(override string) *htmlDoc { |
no outgoing calls