Function html_escape::decode_script

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

Decode text from the <script> element.

The following substring is unescaped:

  • <\/script> => </script>