Question about Fragment.cut

If I have a fragment that contains a paragraph node with text content, say <p>hello</p>

How come I can’t cut the fragment by any means to just return the text content?

I’ve tried cut(1, 6) and so on, but it seems the fragment always returns a paragraph. Is this intentional?

cut keeps parent nodes around the cut content. This is intentional, yes.

Okay :+1: Well, if there was an API that cut through the parent node as well I could use it. I ended up writing hackier version of it. Possibly I could achieve the same result be appending a new parent node, using normal cut, and then returning its content but oh well.