Function html_escape::encode_script [−][src]
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>