MCPcopy
hub / github.com/projectdiscovery/katana / bodyEmbedTagParser

Function bodyEmbedTagParser

pkg/engine/parser/parser.go:199–207  ·  view source on GitHub ↗

bodyEmbedTagParser parses Embed tag from response

(resp *navigation.Response)

Source from the content-addressed store, hash-verified

197
198// bodyEmbedTagParser parses Embed tag from response
199func bodyEmbedTagParser(resp *navigation.Response) (navigationRequests []*navigation.Request) {
200 resp.Reader.Find("embed[src]").Each(func(i int, item *goquery.Selection) {
201 src, ok := item.Attr("src")
202 if ok && src != "" {
203 navigationRequests = append(navigationRequests, navigation.NewNavigationRequestURLFromResponse(src, resp.Resp.Request.URL.String(), "embed", "src", resp))
204 }
205 })
206 return
207}
208
209// bodyFrameTagParser parses frame tag from response
210func bodyFrameTagParser(resp *navigation.Response) (navigationRequests []*navigation.Request) {

Callers 1

TestBodyParsersFunction · 0.85

Calls 2

StringMethod · 0.45

Tested by 1

TestBodyParsersFunction · 0.68