Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/avoidwork/tenso
/ sanitize
Function
sanitize
src/utils/sanitize.js:8–10 ·
view source on GitHub ↗
(arg)
Source
from the content-addressed store, hash-verified
6
* @returns {*} The sanitized value with HTML entities escaped, or original value
if
not a string
7
*/
8
export
function
sanitize (arg) {
9
return
typeof arg === STRING ? arg.replace(/</g, LT).replace(/>/g, GT) : arg;
10
}
Callers
1
html
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected