MCPcopy Create free account
hub / github.com/angular/angular / escapeCommentText

Function escapeCommentText

packages/core/src/util/dom.ts:53–57  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

51 * sequence.
52 */
53export function escapeCommentText(value: string): string {
54 return value.replace(COMMENT_DISALLOWED, (text) =>
55 text.replace(COMMENT_DELIMITER, COMMENT_DELIMITER_ESCAPED),
56 );
57}
58
59/**
60 * Retrieves next sibling node and makes sure that there is no

Callers 3

dom_spec.tsFile · 0.90
createCommentNodeFunction · 0.90
setNgReflectPropertyFunction · 0.90

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected