MCPcopy Create free account
hub / github.com/apache/impala / EscapeForHtml

Function EscapeForHtml

be/src/util/coding-util.cc:229–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void EscapeForHtml(const string& in, stringstream* out) {
230 DCHECK(out != NULL);
231 for (const char c: in) {
232 switch (c) {
233 case '<': (*out) << "&lt;";
234 break;
235 case '>': (*out) << "&gt;";
236 break;
237 case '&': (*out) << "&amp;";
238 break;
239 default: (*out) << c;
240 }
241 }
242}
243
244}

Callers 1

TESTFunction · 0.70

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.56