title: Rendering Svelte components from HTML string
body: <p>I'm just looking into the Svelte framework for an upcoming project.</p>
  
  <p>I was wondering (as it's a project requirement) whether it's possible to load some HTML string from a server (using the fetch api) and insert this into a Svelte component dynamically.</p>
  
  <p>It seems possible to output HTML strings using <code>{@html my_html_string}</code>. Is there any way to have the tags for actual Svelte elements within the HTML string?</p>
  
  <p>e.g. </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script&gt;
      // import MyCustomElementHere....
  
      let my_html_string = 'Some text &lt;MyCustomElement/&gt; some more text';
  &lt;/script&gt;    
  
  &lt;p&gt; {my_html_string} [somehow??] &lt;/p&gt;
  </code></pre>
  
  <p>I was thinking this might be possible by turning a component into a Custom Element (or something), but I haven't managed to make this work (probably as I don't know enough about the framework yet).</p>
  
  <p>Does anyone know if it's actually possible?</p>