remove closing tags from source where they're not allowed