MCPcopy
hub / github.com/apache/echarts / encodeHTML

Function encodeHTML

test/lib/facePrint.js:91–100  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

89 }
90
91 function encodeHTML(source) {
92 return source == null
93 ? ''
94 : String(source)
95 .replace(/&/g, '&')
96 .replace(/</g, '&lt;')
97 .replace(/>/g, '&gt;')
98 .replace(/"/g, '&quot;')
99 .replace(/'/g, '&#39;');
100 }
101
102 function isObject(value) {
103 // Avoid a V8 JIT bug in Chrome 19-20.

Callers 15

renderFailInfoFunction · 0.85
initTestTitleFunction · 0.85
showHideGroupInGroupSetFunction · 0.85
getInputsTextHTMLFunction · 0.85
initSelectInputOptionsFunction · 0.85
createDataTableHTMLFunction · 0.85
createObjectHTMLFunction · 0.85
facePrint.jsFile · 0.85
updateListFilterFunction · 0.85
updateListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…