title: Pass inner HTML to Partial View in ASP.NET Core MVC 3
body: <p>I'm sure this question has already been asked but don't know how to phrase it correctly. I want to do something like that:</p>
  
  <p>MyView.cshtml:</p>
  
  <pre><code>&lt;partial name="_MyPartial"&gt;
      &lt;span&gt;some content&lt;/div&gt;
  &lt;/partial&gt;
  </code></pre>
  
  <p>_MyPartial.cshtml:</p>
  
  <pre><code>&lt;div class="partial"&gt;
      @RenderInnerHtml()
  &lt;/div&gt;
  </code></pre>
  
  <p>and the result is:</p>
  
  <pre><code>&lt;div class="partial"&gt;
      &lt;span&gt;some content&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is it possible? If not with Partial Views, then with View Components perhaps?</p>