Home › Forums › Backend Issues (wp-admin) › wp_kses breaks select images › Reply To: wp_kses breaks select images
Due to the way select2 works, we’ve had to disable html in select2 results by default, restoring the default select2 behaviour.
Instead, you need to manually override the escaping function using a JS filter for a specific field type, key or name.
You can find more information on this here: https://www.advancedcustomfields.com/resources/javascript-api/#filters-select2_escape_markup
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.