angular-ui/bootstrap — pull request #1660 by wesleycho (2014-01-24 03:29:59+00:00)
Title: Added support for popover-html directive for binding html

The [popover](http://getbootstrap.com/javascript/#popovers) component in Bootstrap supports using html as your content. This proposed fix creates a new directive, `popoverHtml` to support this new behavior. You can observe this directive at work [here](http://plnkr.co/edit/vl0oalW5bpJ1ss67c2rm?p=preview) - in order to see that it does indeed function, you must use the developer tools to modify the CSS and alter the `top` css property (try `top: 100px` for example).

This fix has some caveats though - it modifies the tooltip script to conditionally choose the template used depending on whether `type === 'popoverHtml'`, which is not ideal. There is also some code duplication due to reusing most of the HTML from the current popover directive.

It may not be the ideal implementation, and would like thoughts on this. However, I believe that it would be ideal to try to offer this capability for popovers, simply since the current non-support is a regression.