def _escape_json_for_js(json_dumps_string):
 json_dumps_string = json_dumps_string.replace('&', '\\u0026')
 json_dumps_string = json_dumps_string.replace('>', '\\u003e')
 json_dumps_string = json_dumps_string.replace('<', '\\u003c')
 return json_dumps_string

def _escape_json_for_js ( json_dumps_string ) : json_dumps_string = json_dumps_string . replace ( '&' , '\\u0026' ) json_dumps_string = json_dumps_string . replace ( '>' , '\\u003e' ) json_dumps_string = json_dumps_string . replace ( '<' , '\\u003c' ) return json_dumps_string
escape output of json dumps that is safe to be embedded in a <script> tag .