MCPcopy Index your code
hub / github.com/braziljs/eloquente-javascript / escape

Function escape

src/render_html.mjs:46–46  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

44 return ch == "<" ? "&lt;" : ch == ">" ? "&gt;" : ch == "&" ? "&amp;" : "&quot;"
45}
46function escape(str) { return str.replace(/[<>&"]/g, escapeChar) }
47
48// FIXME http highlighting
49

Callers 7

highlightFunction · 0.70
attrsFunction · 0.70
textFunction · 0.70
code_inlineFunction · 0.70
link_openFunction · 0.70
meta_figureFunction · 0.70
meta_quote_closeFunction · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected