Function html_escape::encode_style_quoted_text[][src]

pub fn encode_style_quoted_text<S: ?Sized + AsRef<str>>(
    text: &S
) -> Cow<'_, str>

Encode text used in a quoted text in the <style> element.

The following substring and characters are escaped:

  • </style> => <\/style>
  • " => \"
  • ' => \'