Title: Remove HTML markup from fields
Last modified: August 30, 2016

---

# Remove HTML markup from fields

 *  Resolved [makoun](https://wordpress.org/support/users/makoun/)
 * (@makoun)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/remove-html-markup-from-fields/)
 * So I have radio fields. CMB2 created totally unneccasry ul list markup for it.
   Is there any way to remove?
 * So now i have this:
 *     ```
       <ul class="cmb2-radio-list cmb2-list">
       	<li><input type="radio" class="cmb2-option" name="_radio_input" id="_radio_input1" value="1" required="required"> <label for="_radio_input1"><i class="fa fa-star"></i></label></li>
       	<li><input type="radio" class="cmb2-option" name="_radio_input" id="_radio_input2" value="2" required="required"> <label for="_radio_input2"><i class="fa fa-star"></i></label></li>
       	<li><input type="radio" class="cmb2-option" name="_radio_input" id="_radio_input3" value="3" required="required"> <label for="_radio_input3"><i class="fa fa-star"></i></label></li>
       	<li><input type="radio" class="cmb2-option" name="_radio_input" id="_radio_input4" value="4" required="required"> <label for="_radio_input4"><i class="fa fa-star"></i></label></li>
       	<li><input type="radio" class="cmb2-option" name="_radio_input" id="_radio_input5" value="5" required="required"> <label for="_review_rating5"><i class="fa fa-star"></i></label></li>
       </ul>
       ```
   
 * When I would want this:
 *     ```
       <input type="radio" class="cmb2-option" name="_radio_input" id="_radio_input1" value="1" required="required"> <label for="_radio_input1"><i class="fa fa-star"></i></label>
       <input type="radio" class="cmb2-option" name="_radio_input" id="_radio_input2" value="2" required="required"> <label for="_radio_input2"><i class="fa fa-star"></i></label>
       <input type="radio" class="cmb2-option" name="_radio_input" id="_radio_input3" value="3" required="required"> <label for="_radio_input3"><i class="fa fa-star"></i></label>
       <input type="radio" class="cmb2-option" name="_radio_input" id="_radio_input4" value="4" required="required"> <label for="_radio_input4"><i class="fa fa-star"></i></label>
       <input type="radio" class="cmb2-option" name="_radio_input" id="_radio_input5" value="5" required="required"> <label for="_review_rating5"><i class="fa fa-star"></i></label>
       ```
   
 * Is there any filter for this? I didn’t find anythign from github.
 * [https://wordpress.org/plugins/cmb2/](https://wordpress.org/plugins/cmb2/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 9 months ago](https://wordpress.org/support/topic/remove-html-markup-from-fields/#post-6388476)
 * For what it’s worth, we likely put it in a list because we felt it was the best
   way to handle its display.
 * Not seeing any filters for that myself. I do have to believe you could achieve
   quite a lot with the display as is, with a touch of custom CSS as necessary. 
   Keeping it in a list helps with markup semantics or in the occasional case where
   CSS may be disabled.
 *  Thread Starter [makoun](https://wordpress.org/support/users/makoun/)
 * (@makoun)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/remove-html-markup-from-fields/#post-6388577)
 * Ok. Ended up doing some tricks with javascript to achieve the end result I wanted.
   Thanks.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [10 years, 9 months ago](https://wordpress.org/support/topic/remove-html-markup-from-fields/#post-6388580)
 * Willing to share your solution in case others come through wanting to do something
   similar?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove HTML markup from fields’ is closed to new replies.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/remove-html-markup-from-fields/#post-6388580)
 * Status: resolved