MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / escape_html

Function escape_html

atomic-cli/src/commands/intent/graph.rs:418–422  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

416}
417
418fn escape_html(text: &str) -> String {
419 text.replace('&', "&")
420 .replace('<', "&lt;")
421 .replace('>', "&gt;")
422}
423
424#[cfg(test)]
425mod tests {

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected