change the outer html tag spliting logic