remvoves unwanted markup