MCPcopy Create free account
hub / github.com/KDAB/codebrowser / escape_selector

Function escape_selector

data/codebrowser.js:84–86  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

82 var elapsed;
83
84 var escape_selector = function (str) {
85 return str.replace(/([ #;&,.+*~\':"!^$[\]()=<>|\/@{}\\])/g,'\\$1')
86 }
87
88 function escape_html(str) {
89 return $("<p/>").text(str).html();

Callers 5

highlight_itemsFunction · 0.85
computeTooltipContentFunction · 0.85
onMouseEnterPPCondFunction · 0.85
scrollToAnchorFunction · 0.85
codebrowser.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected