We can't cut formatted text, since it can broke HTML. So before cutting the output we have to remove formatting, this is the reason it looks like this.