MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / htmlEncode

Method htmlEncode

static/panes/compiler.ts:3215–3217  ·  view source on GitHub ↗
(rawStr: string)

Source from the content-addressed store, hash-verified

3213 }
3214
3215 private htmlEncode(rawStr: string): string {
3216 return rawStr.replace(/[\u00A0-\u9999<>&]/g, i => '&#' + i.charCodeAt(0) + ';');
3217 }
3218
3219 checkForHints(result: {hints?: string[]}): void {
3220 if (result.hints) {

Callers 1

checkForHintsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected