Remove unnecessary data from markup.