Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/computationalpathologygroup/ASAP
/ escapeCharacter
Function
escapeCharacter
core/stringconversion.cpp:85–88 ·
view source on GitHub ↗
use HTML style escaping
Source
from the content-addressed store, hash-verified
83
84
//use HTML style escaping
85
std::string escapeCharacter(char c)
86
{
87
return
"&#"
+ tostring(int(c)) +
";"
;
88
}
89
90
void escape(std::string &str, char toEscape)
91
{
Callers
2
escape
Function · 0.85
unescape
Function · 0.85
Calls
1
tostring
Function · 0.85
Tested by
no test coverage detected