pub fn encode_html_entities(data: &str) -> Result<String, Box<dyn Error>>
Expand description
Encodes a string into HTML entities.
ยงExamples
use nutek_encode_lib::encoder;
let encoded = encoder::encode_html_entities("hello & world").unwrap();
assert_eq!(encoded, "hello & world");