remove css and collect tags