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

Function escape_html

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

Source from the content-addressed store, hash-verified

397}
398
399fn escape_html(text: &str) -> String {
400 text.replace('&', "&")
401 .replace('<', "&lt;")
402 .replace('>', "&gt;")
403}
404
405#[cfg(test)]
406mod tests {

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected