FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
opencode/packages/opencode/src/util/html.ts at dev · argszero/opencode · GitHub
argszero
/
opencode
Public
forked from
anomalyco/opencode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
opencode
/
packages
/
opencode
/
src
/
util
/
html.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
8 lines (8 loc) · 210 Bytes
Breadcrumbs
opencode
/
packages
/
opencode
/
src
/
util
/
html.ts
Copy path
File metadata and controls
8 lines (8 loc) · 210 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
export
function
escapeHtml
(
value
:
string
)
{
return
value
.
replaceAll
(
"&"
,
"&"
)
.
replaceAll
(
"<"
,
"<"
)
.
replaceAll
(
">"
,
">"
)
.
replaceAll
(
'"'
,
"""
)
.
replaceAll
(
"'"
,
"'"
)
}
Back
|
FazBrowse Home
|
New Git URL