Popover - "data-html='true'" equivalent option not available
Hello,
For the popover attribute, I am passing HTML code as follows: <h6>Foo</h6>
However, instead of displaying the "Foo" statement with the h6 tag applied, I get the code as it is, that is the popover content is also <h6>Foo</h6>.
In the Twitter Bootstrap popover, one could specify "data-html='true'" to identify the popover content as being HTML code and that it needs be parsed before display, but I do not see any such option for the Angular UI Bootstrap Popover...
@callmekatootie
take a look here: https://github.com/angular-ui/bootstrap/issues/220
@joshdmiller Do you think that adding a html-unsafe version of a popover makes sense? Ir should we really focus on #220?
It's certainly easier to use a popover-html-unsafe version instead of a template, but I've never liked the idea of passing HTML into attributes. But since we did this for the tooltip, it may make sense to do it for the popover as well. If it's something the community wants, I can put out a PR this weekend - it's super trivial to implement. One caveat is that the *-html-unsafe versions, like ng-bind-html-unsafe, do not compile the contents, so directives cannot be used in the provided HTML.
As for #220, I am not exactly sure what's causing the scope bug on the contents but haven't had enough time to really dive into it. I hope to get back into a regular schedule on my open-source commitments this week and this is one of the first things I want to solve.
+1 to add popover-html-unsafe
+1 ^
+1 to add popover-html-unsafe
+1 this would be useful
Has this been implemented in angular-ui yet? I would really like to be able to put html in my popovers!
Move discussion to #641 :-)
Using template is too complicated. I just want show some text with format, nothing fancy.
+1
+1
+1
+1 "Using template is too complicated. I just want show some text with format, nothing fancy."
I agree with everyone else. This is something I've really been waiting for. Just being able to use basic HTML in my popovers for better formatting.
:+1:
+1
+1
+1
This is SO needed.