MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / stripHtmlComments

Function stripHtmlComments

packages/lint/src/utils.ts:305–312  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

303// "<<!-- -->!-- … -->" → "<!-- … -->"), which would otherwise survive and let a
304// commented-out <template>/tag hijack the linter's tag scan.
305export function stripHtmlComments(source: string): string {
306 let out = source;
307 for (let prev = ""; prev !== out; ) {
308 prev = out;
309 out = stripHtmlCommentsOnce(out);
310 }
311 return out;
312}
313
314export function extractScriptTextsAndSrcs(scripts: ExtractedBlock[]): {
315 texts: string[];

Callers 1

buildLintContextFunction · 0.90

Calls 1

stripHtmlCommentsOnceFunction · 0.85

Tested by

no test coverage detected