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:399–403 ·
view source on GitHub ↗
(text: &str)
Source
from the content-addressed store, hash-verified
397
}
398
399
fn escape_html(text: &str) -> String {
400
text.replace(
'&'
,
"&"
)
401
.replace(
'<'
,
"<"
)
402
.replace(
'>'
,
">"
)
403
}
404
405
#[cfg(test)]
406
mod tests {
Callers
nothing calls this directly
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected