Only allow tags to be closed by the same end-tag