def escape_script(text):
    return SCRIPT_RE.sub(r'<-\1/script>', text)
Escape `</script>` tags in 'text' so that it can be placed within a `<script>` block without
dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailcore/utils.py/escape_script