MCPcopy Create free account
hub / github.com/Justineo/github-hovercard / escapeHtml

Function escapeHtml

src/mustache.js:69–73  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

67 };
68
69 function escapeHtml (string) {
70 return String(string).replace(/[&<>"'\/]/g, function fromEntityMap (s) {
71 return entityMap[s];
72 });
73 }
74
75 var whiteRe = /\s*/;
76 var spaceRe = /\s+/;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected