Split HTML into two valid fragments wherever a certain selector is matched. Works on the server side.