Using Select HTML in Bootstrap Popovers

I want to be be able to utilize a select few HTML tags in a Bootstrap popover. I know that I could include the option HTML = true in the settings, but this would leave me exposed to an XSS attack (wouldn’t it?).

I am looking to allow a select few tags – just like when I use wp_kses with the $allowedposttags global.

Read More

(p.s. I’m asking this here instead of stackoverflow because I’m wondering whether some built-in WordPress functionality may be the ticket).

Related posts