Cleans up debug markup