Skip to main content

decode_html_entities

Function decode_html_entities 

Source
pub fn decode_html_entities(text: &str) -> Cow<'_, str>
Expand description

Decodes the entities rich text commonly holds: &amp;, &lt;, &gt;, &quot;, &#39; and &nbsp; (as a space). Decodes once, so &amp;lt; becomes &lt;. Borrows the input when it has no &.