Function htmlescape::decode_html_ignoring_errors
[−]
[src]
pub fn decode_html_ignoring_errors(s: &str) -> Result<String, DecodeErr>
Decodes an entity-encoded string.
Decodes an entity encoded string, replacing HTML entities (&
, 
...) with the
the corresponding character. Case matters for named entities, ie. &Amp;
is invalid.
Case does not matter for hex entities, so .
and .
are treated the same.
Arguments
s
- Entity-encoded string to decode.
Failure
Any invalid, unrecognised or malformed entities will be ignored and left intact.
This function will never return errors with kind
set to IoError
or EncodingError
.