[−][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.
The following substring is escaped:
</script>=><\/script>
pub fn encode_script<S: ?Sized + AsRef<str>>(text: &S) -> Cow<str>
Encode text used in the <script> element.
The following substring is escaped:
</script> => <\/script>