title: rendering page breaks in word with html
body: <p>I am generating documents with php in word and pdf format</p>
  
  <p>I am using headers to generate a document in word </p>
  
  <pre><code>header("Content-type: application/vnd.ms-word");
  header("Content-Disposition: attachment;Filename=example.doc");
  echo "&lt;html&gt;";
  echo "&lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1252\"&gt;";
  echo "&lt;body&gt;"; etc etc
  </code></pre>
  
  <p>The wysiwyg is creating the following code to render pagebreaks</p>
  
  <pre><code>&lt;div style="page-break-after: always;"&gt;&lt;span style="display: none;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  </code></pre>
  
  <p>This html/css is working fine for the pdf output but not the word.</p>
  
  <p>Can someone recommend an alternative method to create page breaks that may work in word.</p>