title: How can I convert html strings to docx readable xml with nodejs?
body: <p>I am generating a docx file using nodejs and am inserting strings at various places in the file. I would like to insert some user generated html into the docx but I cannot find any code/library that converts html into docx xml that can be then inserted and parsed correctly.</p>
  
  <p>The html would look something along the lines of:</p>
  
  <pre><code> &lt;p&gt;This is a para &lt;sup&gt; with superscript here &lt;/sup&gt;&lt;/p&gt;
   &lt;p&gt;And a new paragraph here &amp;nbsp&lt;/p&gt;
  </code></pre>
  
  <p>I would like to convert this into it's equivalent docx xml string that would keep it's paragraph and superscript styling. It will not be a full html document but just a collection of html tags with content (though they can be wrapped in a containing tag if this is easier). I would prefer to use a well tested library(s) to do it but any code would be a big help! Thanks!</p>