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

Function one_line

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

Source from the content-addressed store, hash-verified

391}
392
393fn one_line(text: &str) -> String {
394 text.chars()
395 .map(|c| if c.is_control() { ' ' } else { c })
396 .collect()
397}
398
399fn escape_html(text: &str) -> String {
400 text.replace('&', "&")

Callers 2

node_detailsFunction · 0.70
tree_labelFunction · 0.70

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected