Trimming text and html