title: Puppeteer create pdf with browsershot - error with headerHtml and footerHtml
body: <p>When I try to create a headerHtml or footerHtml on windows 10 with some class or style inside I got an error</p>
  
  <p>For example :</p>
  
  <p>All is working if I don't put any style or class :</p>
  
  <pre><code>-&gt;footerHtml('&lt;footer&gt;&lt;div&gt;hello footer&lt;/div&gt;&lt;/footer&gt;')
  </code></pre>
  
  <p>And if I put an style or class it's return an error :</p>
  
  <pre><code>-&gt;footerHtml('&lt;footer&gt;&lt;div class="pageNumber"&gt;hello footer&lt;/div&gt;&lt;/footer&gt;')
  </code></pre>
  
  <p>or</p>
  
  <pre><code>-&gt;footerHtml('&lt;footer&gt;&lt;div style="color:red;"&gt;hello footer&lt;/div&gt;&lt;/footer&gt;')
  </code></pre>
  
  <p>So I can't style my footer or header, or use the variable "PageNumber, etc..", maybe it's because I try on windows 10 ?</p>
  
  <p>Here the error I got :</p>
  
  <pre><code>Fatal error: Uncaught Symfony\Component\Process\Exception\ProcessFailedException: The command "node ^"E:^\wamp64^\www^\ressources^\class^\jquery^\vendor^\spatie^\browsershot^\src/../bin/browser.js^" ^"^{^\^"url^\^":^\^"file:^\/^\/C:^\^\WINDOWS^\^\TEMP^\^\1148764078-0585836001571749698^\^\index.html^\^",^\^"action^\^":^\^"pdf^\^",^\^"options^\^":^{^\^"path^\^":^\^"example123.pdf^\^",^\^"args^\^":^[^],^\^"viewport^\^":^{^\^"width^\^":800,^\^"height^\^":600^},^\^"displayHeaderFooter^\^":true,^\^"waitUntil^\^":^\^"networkidle0^\^",^\^"format^\^":^\^"A4^\^",^\^"margin^\^":^{^\^"top^\^":^\^"20mm^\^",^\^"right^\^":^\^"20mm^\^",^\^"bottom^\^":^\^"20mm^\^",^\^"left^\^":^\^"20mm^\^"^},^\^"headerTemplate^\^":^\^"^&lt;footer^&gt;^&lt;div class=^\^\^"pageNumber^\^\^"^&gt;hello footer^&lt;^\/div^&gt;^&lt;^\/footer^&gt;^\^"^}^}^"" failed. Exit Code: 1(General error) Working directory: E:\wamp64\www Output: ================ Error Output: ================ undefined:1 {"url":"file:\/\/C:\\WINDOWS\\TEMP\\114 in E:\wamp64\www\ressources\class\jquery\vendor\spatie\browsershot\src\Browsershot.php on line 700
  </code></pre>
  
  <p>Thanks</p>
  
  <hr>
  
  <p>EDIT : </p>
  
  <p>If you have the same error, I have found the problem who create this error on windows 10, the problem come from the quote inside footerhtml and headerhtml, if we put double quote (for class or style or other) the error appear, so we need to use only simple quote like this:</p>
  
  <pre><code>-&gt;footerHtml("&lt;footer&gt;&lt;div class='pageNumber' style='color:red;'&gt;hello footer&lt;/div&gt;&lt;/footer&gt;")
  </code></pre>
  
  <p>Link to the issue <a href="https://github.com/spatie/browsershot/issues/343" rel="nofollow noreferrer">https://github.com/spatie/browsershot/issues/343</a></p>