Skip to main content

html_entity_encode

Function html_entity_encode 

Source
pub fn html_entity_encode(payload: &str) -> String
Expand description

HTML entity encoding — each character becomes &#xXX;.

Context: ONLY safe in HTML contexts where the browser decodes entities.