MCPcopy
hub / github.com/scrapinghub/splash / escape_js_args

Function escape_js_args

splash/html_element.py:47–51  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

45
46
47def escape_js_args(*args):
48 return ','.join([
49 arg.element_js if isinstance(arg, HTMLElement) else escape_js(arg)
50 for arg in args
51 ])
52
53
54class HTMLElement(object):

Callers 2

__call__Method · 0.90
callMethod · 0.85

Calls 1

escape_jsFunction · 0.90

Tested by

no test coverage detected