Fix the printing of view's html content