pub fn decode_script_to_writer<S: AsRef<str>, W: Write + ?Sized>(
text: S,
output: &mut W,
) -> Result<(), Error>Available on crate feature
std only.Expand description
Write text from the <script> element to a writer.
The following substring is unescaped:
<\/script>=></script><\!--=><!--
<\/script at the end of the text is also unescaped.
This only removes the listed escapes and does not parse JavaScript.
Existing escapes in the original text may also be removed, so encoding and decoding may not return the original text.