I don't think so. But my first question is : should we allow HTML at all here ? couldn't we just take container.textContent and append a text node to fragment from that textContent ? For MMS I think this is good enough, or can we have formatting in MMS ?

In any case, if we need formatting later, maybe this could be added in another bug/commit.