remove unnecessary html markup from post details