MCPcopy 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
85std::string escapeCharacter(char c)
86{
87 return "&#" + tostring(int(c)) + ";";
88}
89
90void escape(std::string &str, char toEscape)
91{

Callers 2

escapeFunction · 0.85
unescapeFunction · 0.85

Calls 1

tostringFunction · 0.85

Tested by

no test coverage detected