MCPcopy
hub / github.com/gnab/remark / escape

Function escape

src/remark/highlighter.js:66–68  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

64 /* Utility functions */
65
66 function escape(value) {
67 return value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
68 }
69
70 function tag(node) {
71 return node.nodeName.toLowerCase();

Callers 7

attr_strFunction · 0.85
mergeStreamsFunction · 0.85
processKeywordsFunction · 0.85
processSubLanguageFunction · 0.85
highlightFunction · 0.85
highlightAutoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected