title: How to put RTF/HTML into Excel cell using OpenXML in C#
body: <p>I have a need to take HTML from a rich text editor and put it into an excel sheet. The requirement is that the html is rendered and looks the same as what it does in the rich text editor. </p>
  
  <p>We use OpenXML for our Excel needs but I can't seem to find a way to put HTML into a cell. I can set the value but that just displays the string.</p>
  
  <p>For example, I need this HTML to render in a cell:</p>
  
  <pre><code>&lt;p style="text-align: center"&gt;&lt;strong&gt;This is a test!&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;s&gt;a&lt;/s&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;u style="color: rgb(32, 43, 250)"&gt;test&lt;/u&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;test&lt;ul&gt;&lt;li&gt;&lt;span style="background-color: rgb(156, 224, 29)"&gt;test&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;em style="font-size: 24pt; font-family: &amp;quot;Lucida Console&amp;quot;"&gt;d&lt;/em&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Is there a way to do this or am I searching for something that can't be done?</p>