MCPcopy
hub / github.com/ollm/OpenComic / escapeQuotes

Function escapeQuotes

scripts/opencomic.js:627–635  ·  view source on GitHub ↗
(str, mode = false)

Source from the content-addressed store, hash-verified

625}
626
627function escapeQuotes(str, mode = false)
628{
629 if(mode === 'simples')
630 return String(str).replace(/'/g, '\\\'');
631 else if(mode === 'doubles')
632 return String(str).replace(/"/g, '\\\"');
633 else
634 return String(str).replace(/'/g, '\\\'').replace(/"/g, '\\\"');
635}
636
637function readFileApp(file)
638{

Callers 12

downloadFunction · 0.85
addUrlFunctionsFunction · 0.85
showNextComicFunction · 0.85
showPreviousComicFunction · 0.85
comicContextMenuFunction · 0.85
deletePermanentlyFunction · 0.85
opencomic.jsFile · 0.85
loadFunction · 0.85
searchFunction · 0.85
showRecentlySearchedFunction · 0.85
_saveImagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected