Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/NeMo-Relay
/ _ascii
Function
_ascii
scripts/docs/generate_rust_library_reference.py:80–82 ·
view source on GitHub ↗
(value: str)
Source
from the content-addressed store, hash-verified
78
79
80
def
_ascii(value: str) -> str:
81
value = value.translate(TRANSLATION_TABLE)
82
return
value.encode(
"ascii"
,
"xmlcharrefreplace"
).decode(
"ascii"
)
83
84
85
def
_escape_text(value: str) -> str:
Callers
4
_clean_text
Function · 0.85
_clean_code
Function · 0.85
_html_text
Function · 0.85
_html_attr
Function · 0.85
Calls
3
decode
Method · 0.65
encode
Method · 0.65
translate
Method · 0.45
Tested by
no test coverage detected