MCPcopy
hub / github.com/Justineo/github-hovercard / encodeHTML

Function encodeHTML

src/hovercard.js:1002–1009  ·  view source on GitHub ↗
(pieces, ...substitutions)

Source from the content-addressed store, hash-verified

1000
1001 // Tagged template function
1002 function encodeHTML(pieces, ...substitutions) {
1003 let result = pieces[0]
1004 for (let i = 0; i < substitutions.length; ++i) {
1005 result += htmlUtil.escape(substitutions[i]) + pieces[i + 1]
1006 }
1007
1008 return result
1009 }
1010
1011 function fixRef(elem, base, branch) {
1012 ['href', 'src'].forEach(attr => {

Callers 5

formatTimeFunction · 0.70
getCardHTMLFunction · 0.70
handleErrorFunction · 0.70
hovercard.jsFile · 0.70
extractElemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected