span class="hl opt">(</span>attr<span class="hl opt">.</span>nodeName <span class="hl opt">+</span> <span class="hl str">'=</span><span class="hl esc">\'</span><span class="hl str">'</span> <span class="hl opt">+</span> attr<span class="hl opt">.</span>nodeValue<span class="hl opt">.</span><span class="hl kwd">replace</span><span class="hl opt">(/</span><span class="hl str">'/g, '</span><span class="hl esc">\\\'</span><span class="hl str">') + '</span><span class="hl esc">\'</span><span class="hl str">');</