MCPcopy Create free account
hub / github.com/GooseMod/OpenAsar / fixHtml

Function fixHtml

scripts/strip.js:32–36  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

30 .replaceAll('? ?', '??');
31
32const fixHtml = (code) => code
33 .replaceAll(' loop', '~loop')
34 .replaceAll(' autoplay', '~autoplay')
35 .replaceAll(' src', '~src')
36 .replaceAll(' id', '~id');
37
38const stripJs = (path) => writeFileSync(path, stripCode(readFileSync(path, 'utf8')));
39const stripHtml = (path) => writeFileSync(path, stripCode(fixHtml(readFileSync(path, 'utf8'))));

Callers 1

stripHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected