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

Function escape_js

splash/jsutils.py:5–6  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

3
4
5def escape_js(*args):
6 return json.dumps(args, ensure_ascii=False)[1:-1]
7
8
9# JS function which only allows plain arrays/objects and other primitives

Callers 15

escape_and_evaljsFunction · 0.90
addMethod · 0.90
init_storageMethod · 0.90
get_event_propertyMethod · 0.90
remove_eventMethod · 0.90
__init__Method · 0.90
escape_js_argsFunction · 0.90
node_propertyMethod · 0.90
set_node_propertyMethod · 0.90
get_node_styleMethod · 0.90
set_node_styleMethod · 0.90
node_methodMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected