pub fn decode_script_double_quoted_text<S: ?Sized + AsRef<str>>(
text: &S,
) -> Cow<'_, str>Expand description
Decode content of a double-quoted JavaScript string from <script>.
Escapes emitted by the matching encoder are decoded.
Hex escapes use \xHH with uppercase digits; only escaped C0 controls and < are decoded.
\u2028 and \u2029 are also decoded.
Backslashes and " escaped with a backslash are decoded.
Legacy <\/script> and <\!-- escapes are also decoded.
Unknown or incomplete escapes are kept, and decoded text is not decoded again.