def escape_script(text):
 return SCRIPT_RE.sub(u'<-\\1/script>', text)

def escape_script ( text ) : return SCRIPT_RE . sub ( u'<-\\1/script>' , text )
escape </script> tags in text so that it can be placed within a <script> block without accidentally closing it .