MCPcopy
hub / github.com/attentiveness/reading / formatStringWithHtml

Function formatStringWithHtml

app/utils/FormatUtil.js:26–34  ·  view source on GitHub ↗
(originString)

Source from the content-addressed store, hash-verified

24};
25
26export const formatStringWithHtml = (originString) => {
27 const newString = originString
28 .replace(/ /g, ' ')
29 .replace(/"/g, '"')
30 .replace(/&/g, '&')
31 .replace(/&lt;/g, '<')
32 .replace(/&gt;/g, '>');
33 return newString;
34};

Callers 1

WebViewPage.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected