title: What chars needs escaping in querySelector?
body: <p>According to the document here: <a href="https://developer.mozilla.org/en-US/docs/Web/API/document.querySelector#Notes" rel="noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/document.querySelector#Notes</a></p>
  
  <p>It says some characters need to be escaped when doing querySelector:</p>
  
  <blockquote>
    <p>To match ID or selectors that do not follow the CSS syntax (by using a
    colon or space inappropriately for example), you must escape the
    character with a back slash. As the backslash is an escape character
    in JavaScript, if you are entering a literal string, you must escape
    it twice (once for the JavaScript string, and another time for
    querySelector):</p>
  </blockquote>
  
  <p>I was hoping to write a function that does the escaping on a string but needed to know which chars needed escaping first.</p>
  
  <p>Thanks</p>