MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getAttrString

Function getAttrString

pkg/vdom/vdom_html.go:77–84  ·  view source on GitHub ↗

returns value, isjson

(token htmltoken.Token, key string)

Source from the content-addressed store, hash-verified

75
76// returns value, isjson
77func getAttrString(token htmltoken.Token, key string) string {
78 for _, attr := range token.Attr {
79 if attr.Key == key {
80 return attr.Val
81 }
82 }
83 return ""
84}
85
86func attrToProp(attrVal string, isJson bool, params map[string]any) any {
87 if isJson {

Callers 1

BindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected