Can I get mdb-select to show custom characters?


Topic: Can I get mdb-select to show custom characters?

leegellie pro asked 6 years ago

With the latest version of MDB Select the selected option is exploding HTML Special Characters.
<select class="col-9 mb-3 mdb-select md-form" id="item_category_id" name="item_category_id">
    <option value="10-VB7008">10-VB7008 - "M SERIES VITREOUS CHINA WHITE RECTANGLE UNDERMOUNT PORCELAIN SINK BOWL SIZE: 17 1\/2\"W X 13 5\/8\"D"</option>
    etc...
</select>
https://photos.app.goo.gl/ARDFVGL75huE5kJR6 Once I open the select dropdown it all shows fine. MDB Select drop-down showing fine Can anyone help me figure this out?    

Jakub Strebeyko staff answered 6 years ago

Hi leegellie, Thanks for reaching out! It probably has to do with the way material select is dealing with html sanitation - the "quote" character is the only one being escaped that way. Filed it as a bug. Best, Kuba

Alan van Buuren pro answered 6 years ago

Try this: remove col-9 <select class="mdb-select md-form" id="item_category_id" name="item_category_id"> <option value="10-VB7008">10-VB7008 - "M SERIES VITREOUS CHINA WHITE RECTANGLE UNDERMOUNT PORCELAIN SINK BOWL SIZE: 17 1\/2\"W X 13 5\/8\"D"</option> etc... </select> </div>  
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.9
  • Device: Desktop PC
  • Browser: Chrome
  • OS: Win10
  • Provided sample code: No
  • Provided link: No