MCPcopy
hub / github.com/vuejs/core / escapeHtmlComment

Function escapeHtmlComment

packages/shared/src/escapeHtml.ts:50–52  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

48const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g
49
50export function escapeHtmlComment(src: string): string {
51 return src.replace(commentStripRE, '')
52}
53
54export const cssVarNameEscapeSymbolsRE: RegExp =
55 /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g

Callers 2

escapeHtml.spec.tsFile · 0.90
renderVNodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected