Function mung::decode_entities
[−]
[src]
pub fn decode_entities<'a>(s: &'a str) -> Cow<'a, str>
Decodes HTML/XML entities into their UTF-8 form
Examples
Can be called with &' str
use mung::decode_entities; let title = decode_entities( "Best & the Worst of Times" );
or String
use mung::decode_entities; let incoming_html = "An example of some love &heart;.".to_string( ); let title = decode_entities( &incoming_html );