cut html and remain tag