remove extraneous markup