MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / escapeColor

Function escapeColor

reporter.cjs:56–58  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

54}
55
56function escapeColor(text) {
57 return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
58}
59
60function unescapeColor(text) {
61 return text.replace(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&amp;/g, "&");

Callers 2

constructorMethod · 0.70
flushMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected