Function asFragment

Create a fragment from a string. The fragment is not attached to any document by default. The fragment is not a valid element or document, it's just a piece of html you can add to a document.

parserino.FragmentString asFragment (
  scope return string s
) pure nothrow @nogc @safe;
auto fragment = "<b>hello</b>".asFragment;
doc.body.appendChild(fragment);