MCPcopy Create free account
hub / github.com/vale-cli/vale / getAttribute

Function getAttribute

internal/lint/ast.go:271–278  ·  view source on GitHub ↗
(tok html.Token, key string)

Source from the content-addressed store, hash-verified

269}
270
271func getAttribute(tok html.Token, key string) string {
272 for _, attr := range tok.Attr {
273 if attr.Key == key {
274 return attr.Val
275 }
276 }
277 return ""
278}

Callers 1

lintHTMLTokensMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…