Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
418
fn escape_html(text: &str) -> String {
419
text.replace(
'&'
,
"&"
)
420
.replace(
'<'
,
"<"
)
421
.replace(
'>'
,
">"
)
422
}
423
424
#[cfg(test)]
425
mod tests {
Callers
nothing calls this directly
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected