I have a select built by ajax which adds custom html for option help text, e.g.,
<option value="foo" data-content="foo<span class='dr-hint' data-toggle='tooltip' data-placement='bottom' title='ex: Some helpful text'> <i class='fas fa-question-circle'></i></span>">foo</option>
Obviously, when I make a select2 from this content it drops the data-content. How can I get that attribute into the option list of select2?