title: Replacing all english quotes with german quotes
body: <p>im here to ask, if someone can help me with quotation and syntax checking.
  im aware of the question <a href="https://stackoverflow.com/questions/6224893/replace-english-quotes-to-german-quotes">solution 1</a>, but i don't fully understand that solution.</p>
  <p>here is an example, fully integrated into a website and humbly ask, if anyone can find an error?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function rewriteQuotes(){
    var all_p = document.querySelectorAll(`.content_container`);
    var regex_s = /[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&amp;()*+,\-.\/:;&lt;=&gt;?@\[\]^_`{|}~]/;
    for (var i = 0; i &lt; all_p.length; i++) {
      if (all_p[i] != null) {
        var all_nodes = all_p[i].querySelectorAll("*");
        for (var k = 0; k &lt; all_nodes.length; k++) {
          if (all_nodes[k].childNodes.length &gt; 0) {
            var all_children = all_nodes[k].childNodes;
            for (var t = 0; t &lt; all_children.length; t++) {
              if (all_children[t].nodeName == "#text") {
                all_children[t].textContent = all_children[t].textContent.replace(/"/g,"\“");
                all_children[t].textContent = all_children[t].textContent.replace(/\s\“/g,"\ „");
                if (all_children[t].textContent.charAt(0)== "\“") {
                  if (all_children[t].textContent.charAt(1) === "") {
                  } else {
                    var char_1 = all_children[t].textContent.charAt(1);
                    if (regex_s.test(char_1)) {
                    } else {
                      all_children[t].textContent = "\„" + all_children[t].textContent.substring(1);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  };
  document.addEventListener('DOMContentLoaded',function(){
    setTimeout(function(){
      rewriteQuotes();
    },1);
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="content_container"&gt;
    &lt;h2&gt;"Hello"&lt;/h2&gt;
    &lt;p&gt;my "aunti" was driving over the "cat" with her "&lt;em&gt;skateboard&lt;/em&gt;".&lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>