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

Function sanitize

api/prettydiff-webtool.ts:3072–3074  ·  view source on GitHub ↗
(input:string)

Source from the content-addressed store, hash-verified

3070 app = function dom_event_execute_app() {
3071 let output:string = "";
3072 const sanitize = function dom_event_execute_app_sanitize(input:string):string {
3073 return input.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
3074 },
3075 renderOutput = function dom_event_execute_app_renderOutput():void {
3076 let diffList:HTMLCollectionOf<HTMLOListElement>,
3077 button:HTMLButtonElement,

Callers 1

renderOutputFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected