Function html_escape::encode_style

source ·
pub fn encode_style<S: ?Sized + AsRef<str>>(text: &S) -> Cow<'_, str>
Expand description

Encode text used in the <style> element.

The following substring is escaped:

  • </style> => <\/style>
  • <!-- => <\!--