decode_html_entities

Function decode_html_entities 

Source
pub fn decode_html_entities(text: &str) -> String
Expand description

Decode common HTML entities.

Decodes the most common HTML entities to their character equivalents:

  • ""
  • ''
  • &lt;<
  • &gt;>
  • &amp;& (must be last to avoid double-decoding)

§Arguments

  • text - Text containing HTML entities

§Returns

Text with entities decoded