pub fn encode_script_quoted_text<S: ?Sized + AsRef<str>>(
    text: &S
) -> Cow<'_, str>
Expand description

Encode text used in a quoted text in the <script> element.

The following substring and characters are escaped:

  • </script> => <\/script>
  • " => \"
  • ' => \'