Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using HTML inside Popovers #183

Open
re1naldo opened this issue Jan 31, 2014 · 2 comments
Open

Using HTML inside Popovers #183

re1naldo opened this issue Jan 31, 2014 · 2 comments
Assignees
Labels

Comments

@re1naldo
Copy link

How do you render HTML content inside popover? I tried something like:

TbHtml::popover('<i class="icon-question-sign bigger-150"></i>', false, 'Products: <br> Services:', array('html'=>true));

but it didn't work. The rendered HTML was:

<a rel="popover" data-content="Products: &lt;br&gt; Services:" data-toggle="popover" title="" data-html="true" href="#">

Is it possible to render something like:

<a rel="popover" data-content="Products: <br> Services:" data-toggle="popover" title="" data-html="true" href="#">

Or maybe setting html attribute for popover?

$('.popover-with-html').popover({ html : true });
@smff
Copy link

smff commented Apr 2, 2014

i have same problem too

@crisu83 crisu83 changed the title Using HTML inside Popover Using HTML inside Popovers May 21, 2014
@crisu83 crisu83 self-assigned this Feb 11, 2015
@sasurajachar
Copy link

One quick fix is Open tbapi.php at extensions/bootstrap/components
Add a line inside registerPopover function as $options['html']=true; when $options['selector'] is set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants