jQuery UI starting from version 1.8.4 html-encodes Autocomplete suggestions (according to this issue).
This became a problem for me now. I used to theme the output for the suggestions, but now (if I use version 1.8.4 or higher) Autocomplete just html-encodes my theming. All tags like <b>
, <span>
are being printed to the user instead of displaying the actual styling.
So the suggestions now look like:
<b>
su<b>
suggestion- another
<b>
su<b>
suggestion
instead of:
- suggestion
- another suggesion
I've read about custom data, but I use Yii framework and the output is being generated from certain actions (PHP code).
So, how do I theme the output now?
Thank you!