remove spurious markup