remove unnecessary html code