def escape_ajax(url):
 (defrag, frag) = urldefrag(url)
 if (not frag.startswith('!')):
  return url
 return add_or_replace_parameter(defrag, '_escaped_fragment_', frag[1:])

def escape_ajax ( url ) : ( defrag , frag ) = urldefrag ( url ) if ( not frag . startswith ( '!' ) ) : return url return add_or_replace_parameter ( defrag , '_escaped_fragment_' , frag [ 1 : ] )
return the crawleable url according to: URL .