[−][src]Function html_escape::encode_script
pub fn encode_script<S: ?Sized + AsRef<str>>(text: &S) -> Cow<str>
Encode text used in the <script> element. Escape </script> to <\/script>.
pub fn encode_script<S: ?Sized + AsRef<str>>(text: &S) -> Cow<str>
Encode text used in the <script> element. Escape </script> to <\/script>.