Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OneNoteDev/WebClipper
/ stringtrim
Function
stringtrim
lib/sanitize-html.js:2254–2257 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
2252
}
2253
2254
function
stringtrim (str) {
2255
if
(str.trim)
return
str.trim()
2256
return
str.replace(/^\s+|\s+$/g,
''
)
2257
}
2258
2259
function
toHex (n) {
2260
if
(n < 16)
return
'0'
+ n.toString(16)
Callers
1
base64clean
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected