FIX: removes invalid, unpaired closing tag