MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / htmlEscape

Method htmlEscape

calc/calc.ts:266–273  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

264 });
265 }
266 }
267
268 private formatResult(value: number): string {
269 if (Number.isInteger(value)) {
270 return value.toString();
271 }
272
273 const rounded = Math.round(value * 1e12) / 1e12;
274 return rounded.toString().replace(/\.?0+$/, "");
275 }
276}

Callers 1

handleCalcMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected