MCPcopy
hub / github.com/lit/lit / stripExpressionMarkers

Function stripExpressionMarkers

packages/labs/testing/src/lib/utils.ts:19–20  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

17 * Strips Lit expression markers from provided html string.
18 */
19export const stripExpressionMarkers = (html: string) =>
20 html.replace(/<!--\?lit\$[0-9]+\$-->|<!--\??-->|lit\$[0-9]+\$/g, '');

Callers 12

lit-html_test.tsFile · 0.90
repeat_test.tsFile · 0.90
until_test.tsFile · 0.90
unsafe-svg_test.tsFile · 0.90
keyed_test.tsFile · 0.90
guard_test.tsFile · 0.90
if-defined_test.tsFile · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…