Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ escapeAttribute
Function
escapeAttribute
packages/effect/src/unstable/httpapi/internal/html.ts:21–25 ·
view source on GitHub ↗
(str: string)
Source
from the content-addressed store, hash-verified
19
20
/** @internal */
21
export
function
escapeAttribute(str: string): string {
22
return
escape(str)
23
.replace(/
"/g, "
"")
24
.replace(/'/g,
"'"
)
25
}
Callers
1
Schema.ts
File · 0.85
Calls
2
escape
Function · 0.70
replace
Method · 0.45
Tested by
no test coverage detected