(source: string)
| 303 | // "<<!-- -->!-- … -->" → "<!-- … -->"), which would otherwise survive and let a |
| 304 | // commented-out <template>/tag hijack the linter's tag scan. |
| 305 | export 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 | |
| 314 | export function extractScriptTextsAndSrcs(scripts: ExtractedBlock[]): { |
| 315 | texts: string[]; |
no test coverage detected