MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / htmlfix

Function htmlfix

api/diffview.ts:392–397  ·  view source on GitHub ↗
(item:string)

Source from the content-addressed store, hash-verified

390 return output;
391 },
392 htmlfix = function diffview_report_htmlfix(item:string): string {
393 return item
394 .replace(/&/g, "&")
395 .replace(/</g, "&lt;")
396 .replace(/>/g, "&gt;");
397 },
398 baseTab: string[] = (tab === "")
399 ? []
400 : noTab(baseTextArray),

Callers 1

diffviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected