[SalesForce] Apex:repeat option is repeating element multiple times

I'm using Apex repeat and including check-box field and check-box value.
Here is the Apex code.

    <apex:repeat value="{!providerCategories}" var="pc">    
      <label>
        <apex:inputCheckbox value="{!pc.optionSelected}" />
        <apex:outputLabel value="{!pc.optionLabel}" />
      </label>
     </apex:repeat>

When I run this code I am getting label for both check-box field and check-box value

  <label>
     <input type="checkbox" name="j_id0:j_id28:ProviderSearch:j_id43:0:j_id45" checked="checked"><label>Expert Advisory Board </label>    </label>
<label><input type="checkbox" name="j_id0:j_id28:ProviderSearch:j_id43:1:j_id45" checked="checked"><label>Medical Facility</label>                         </label>

I don't need label for check-box value. How to resolve this issue. Thanks in advance.
I want output like this

<label>
     <input type="checkbox" name="j_id0:j_id28:ProviderSearch:j_id43:0:j_id45" checked="checked">Expert Advisory Board  </label>

Best Answer

If I'm understanding your question, it sounds like you don't want the label to render. If so, perhaps you want to try something like this:-

<apex:repeat value="{!providerCategories}" var="pc">      
    <label>
       <apex:inputCheckbox value="{!pc.optionSelected}" id="someId" />
       <apex:outputLabel value="{!pc.optionLabel}" for="someId" rendered="false" />
    </label>
</apex:repeat>