pub fn undo_bracket(s: &[u8]) -> &[u8] ⓘ
Expand description
Remove wrapping brackets from a string to retrieve its literal value
§Examples
let a = b"<urn:ietf:params:imdn>";
let slice = rust_rcs_core::internet::syntax::undo_bracket(a);
assert_eq!(slice, b"urn:ietf:params:imdn");